postfix (cant send or receive mail)
Hi everyone,
Im in a bit of a dilema, i set up a mail server with postfix, dovecot and squirrelmail on SUSE 11 system, all the configs look correct but it has failed to sent nor receive mail, the most confusing thing abt it is when i send mail to a different domain it does reach the person, but then i cant send mail to the local accounts on the mail system itself. According to the log, i ges there is something wrong somewhere but i cant figure out what; Code:
mail1:/srv/www/htdocs/squirrelmail/config # tail -f /var/log/mail Can anyone help? |
Yahoo is pretty straight forward in their denying of messages. You'll notice this link provided to why the message was deferred or denied: http://help.yahoo.com/help/us/mail/defer/defer-06.html
From the site: Quote:
|
postfix (cant send or receive mail)
Hi,
i dont have a registered domain but atleast it should allow exchange of mails between the local users on the LAN, shouldn't it? coz the users on the LAN can access the mail server through web (squirrelmail) and they can also compose mails and send, trouble is the mails arent sent to the local accounts on the Server, and thats why im confused, since it cant send mail to external domains like yahoo and G-Mail. Could anyone tell why this is happening? |
I'm more than a little puzzled by what you trying to say. These are the various (some conflicting) statements I'm reading:
1) Users cannot send or receive any mail 2) Users can send mail (to a different person?) 3) Users cannot send to local users 4) Local users can send 5) Users cannot send to remote domains So let's step back. First, show output from postconf -n. Second, show the error message from the maillog you see from a message that is failing (that you believe should work). |
Quote:
Hi,thanx for your reply, here is the output from postconf -n Code:
mail1:~ # postconf -n Code:
mail1:~ # tail -f /var/log/mail |
What is the hostname/homainname of your machine? If it isn't something.nelly.com, there's your problem
Edit - I just had a look on the net, and there is a nelly.com. Now either you need to tell your local system that you want it to use your machine instead of the real nelly.com (you could put an entry in /etc/hosts to do that), or better still, use a name that isn't used elsewhere (you'd still need an entry in hosts). Can you show us the output of hostname and domainname please |
Hi,
in my network configs, the host hostname is 'mail1' and the domain name is 'nelly.com' |
What does
ping nelly.com showW Is it Quote:
If it is, you are going to need to add a line to /etc/hists that looks like yourIPaddress mail1.nelly.com mail1 nelly.com So say you IP ia 1.2.3.4, you could just do echo "1.2.3.4 mail1.nelly.com mail1 nelly.com" > /etc/hosts |
Can you also post the output of
cat /etc/hosts.conf Should be OK, but worth checking that your hosts file will be read |
Hi, just 2 clarify, i dont own nelly.com (194.132.118.108) and i totally have no attachment to that domain, only that my SUSE box onto which im tryin 2 set up postfix has nelly.com as its domain name, but this is not a fully registered domain name. like i said, mine is just a LAN thing.
output for cat /etc/hosts Quote:
|
Quote:
I don't get your hosts file. Why 192.168.43.51 nelly nelly and why 127.0.0.2 mail1.nelly.com mail1 the 127.0.0.2 may work (I don't know for sure) but wou would need a nelly.com entry there as well (something like 127.0.0.2 mail1.nelly.com mail1 nellycom). To be honest, I'd change 127.0.0.1 localhost to 127.0.0.1 localhost nelly.com mail1.nelly.com mail1 |
i ges i kinna messed up the whole server n like u see in the /etc/hosts file, it doesnt really depict the changes i made over 4 days ago, coz my ip is 192.168.43.52 not .51, that was the old one which i changed, but still shows in the /etc/hosts file,
Also i think my dovecot crushed coz i checked and realised it wasnt running, when i start it it brings a long string of weired errors; So i decided 2 install everything from scratch, so m currently installing SUSE 11. Will let you knw guys. i need your help real bad. Thnx Guys. |
Don't usurp an existing domain name. This leads to all sorts of trouble.
If you don't own a domain name, and this is LAN-only, use something like x.local (eg. neli.local). When you settle down your changes, and are ready to begin again, we'll start afresh. |
Hi there,
im up again n i need your help right from the start. i need 2 install Postfix with SMTP-AUTH-TLS, dovecot and i have squirrellmail already installed. Thnx. |
And if anyone has a documentation on this process i will be more than grateful.
|
I make no recommendations on HowTo's in general, but here's one you can try out::
http://www.howtoforge.com/perfect-server-opensuse11 |
Thnx Mr.C. I appreciate so much.
|
Hi all,
i managed to set up the server and all the neccessary services are running. problem is with postfix again, after following the document at i still encountered th e same issues. First of all i set the hostname of the machine to nelly, and the domain to mail1.local All these configs are also correctly defined in the /etc/postfix/main.cf. -The users are able to login thru squirrelmail -They are able to compose mail, and send to other users configured on the machine, but the mail is not delivered to the recipients inbox, this is the log generated i the process Quote:
Secondly, when sam sends mail to domains like yahoo, G-mail etc, they are delivered only that it shows the mail is from sam@suse.de, im so confused by this suse.de thing, the relay in the log indicates mx1.suse.de, can anyone help me here coz im so lost and confused. Thnx |
Again, post your postconf -n output.
It really, really, really is best to get things working one step at a time (eg. postfix w/o TLS/AUTH, AUTH standalone, and then combine). |
Hi
Here is the output from Postconf -n Code:
nelly:~ # postconf -n |
What version of postfix was installed?
The parameter check_relay_domains at the end of smtpd_recipient_restrictions was deprecated back in 2002-12-02. This is one of the reasons why I generally do not give pointers to HowTo's - so many are wrong, or dated. |
Version of postfix installed:-
Quote:
Thanx |
I'd suggest you start with the default postfix config file, and work from there. If you want to do this, move the existing main.cf file elsewhere, and reinstall postfix to get the standard config (or at least the one that is used with your distro). Then post the output of postconf -n again.
|
hi there
Quote:
|
So what is happening? It it working?
|
Nope,
same issue, user can login and compose mail but its not delivered to recipients Inbox, and also weired domains showing up the logs. Quote:
Im totally lost! |
First setup postfix and then setup dovecot.
Postfix howto: http://www.postfix.org/docs.html Dovecot howto: http://wiki.dovecot.org/FrontPage Setup the most basic postfix: just local user mail. Then slowly adapt to allow external mail and out-going mail. Take baby steps. I also would recommend a VERY good book called: The Book of Postfix - State of the art message transport, by Ralf Hildebrandt and Patrick Koetter. ISBN: 978-1-59327-001-8 I'm reading it now. It will tell you everything you need to know about postfix. I haven't read other books on postfix, but this seems to get it all. |
What is the exact command you are using to send mail, or if from a client, what address are you sending to?
What is the content of /etc/hosts? Do you have a line similar to mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain in main.cf? Can your try echo "hello" | mail -s test1 nelly echo "hello" | mail -s test2 nelly@mail1.local and echo "hello" | mail -s test3 nelly@nelly.mail1.local and show the logs around these You've got something strange on your system |
Hi
Quote:
Second command has its mail bounced. Third command also delivers mail to nelly Inbox Now that means i have to send mail to user@nelly.mail1.local, for mail to be delivered to the users inbox. but then it shows the mail is from user@suse.de, thats kinna weired coz i thought it wud show that its from user@nelly.mail1.local, isn't it? i dont knw where the suse.de is coming from. For example i login as sam and send mail to editorail@nelly.mail1.local, the mail is delivered but then it shows its from sam@suse.de. |
What is the hostname of your machine (type hostname from command prompt)
Edit - and what's in /etc/hosts? |
checkmate3001, thanx so much for the links and postfix guide. Now about the postfix book do u hav a soft copy or printed one?
|
Postfix adds myorigin (which defaults to myhostname) onto email addresses that are unqualified (eg. nelly gets rewritten as root@nelly.mail1.local). So this matches what you see in test1. And test3 ends up being the same as test1 because of this.
test2 fails, because the domain "mail1.local" does not match myorigin (which above we set is set to the default nelly.mail1.local). If you want the domain "mail1.local" to be the domain used, set myorigin: myorigin = $mydomain Please show exactly the log lines, or mail headers that reference "suse.de". |
my hostname is nelly, and my /etc/hosts file looks like this;
Quote:
|
You need to add nelly.local in there, so
27.0.0.2 nelly.mail1.local nelly.local nelly 192.168.43.6 nelly.mail1.com nelly.local nelly |
Hi, here is a cut out from the log generated when i logged in as nelly and sent mail to editorial@nelly.mail1.local
Quote:
|
Postfix doesn't use the hosts file unless disable_dns_lookups = yes..
|
Quote:
|
How are you sending the mail? What MUA are you using? The from=<nelly@suse.de> is the Envelope Sender. This is set by your MUA when you send the mail to your server.
|
Hi guys,
I really really appreciate all the efforts you have invested in this and it really means alot to me, i now think i had a problem with the domain and hostname configs, coz right now i can send and receive mail locally, but i guess if i get a fully qualified domain name everything will be fine. i applied for one from my ISP and its in the process. Anyways thank you very much and im totally grateful. B.T.W Can u guys show me how to increase the attachments maximum size? coz right now its at 2MB, i would really like to put at around 15MB, Also lets say i need to send email to all users on the server without typing all of them one by one, that means i need to create some sort of aliases, how do i go about that? lets say i need it to be like staff@nelly.mail1.local, i need help on this. Thnx n Rgds. |
There's a parameter for main.cf call message_size_limit. Set this to the number of bytes you'd like to allow.
Quote:
|
madfed,
Postfix can use a phony domain name - a real domain name is not even necessary to send mail outbound, but you have to rewrite the envelope sender. This is all documented in the Small Home and Office README on the postfix site (I think I referred you to that site). Unless you are also able to get a PTR DNS (aka: reverse DNS) name, you will have trouble sending to other MTAs. If you are on a residential or dynamic IP, you will have trouble sending to other MTAs. Quote:
Code:
$ cat /etc/hosts |
Quote:
$ postconf -d alias_database alias_database = hash:/etc/aliases and then add staff: email1, email2, email3, ... then run newaliases |
So are you saying that Postfix doesn't bother resolving hostnames in mydestinations (which would make sense)? Otherwise they need to be resolved somewhere, ang this name won't be in any dns server.
|
Exactly.
man 5 postconf: Quote:
|
Fair 'nuff, and good to add a little something to the knowledge base
|
Hi
Quote:
Thanx so much for yo help guys, it all worked out perfect and i cant thank you enough for all the help you have rendered to me. i must say i have learnt alot from you guys. God Bless. |
All times are GMT -5. The time now is 11:37 PM. |