PDA

View Full Version : Dovecot + postfix installation not receiving any mail


jnolla
5th June 2007, 03:48
Centos 5, Dovecot + postfix installation not receiving any mail. I've been killing myself looking for a possible solution, but can't find any on the web.

The conditions:
No firewall blocking the port
ISP not blocking ports
Have checked Maildir under ispconfig.

What I'm I missing? Can some one help.

falko
6th June 2007, 16:03
Does the MX record point to the ISPConfig server? What's in the mail log when you send a mail to the server?

jnolla
7th June 2007, 00:03
Here is the maillog. I did setup MX record when creating the sites. I have created the MX record also on goddady from which I purchase all of my domains.

But I'm a bit confuse, and don't know if I'm doing it correctly usnig the godaddy. I'm using a nother service which I have managed other domains DYNDNS, I know for a fact that the configurations are correct there.

Thanks Again Falko

jnolla
7th June 2007, 00:44
Now I'm encountering this problem when I send from gmail:

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 13): 554 5.7.1 <admin@example.com>: Relay access denied

I did add the configuration shown on the last tutorial:
How To Block Spam Before It Enters The Server (Postfix)

Don't know where tha conflict is?
best Regards

jnolla
7th June 2007, 00:50
Here is the latest log:

When I send from a local mail user to another local mail user, it bounces?
admin@mydomain.com
you@mydomain.com

Then you can see the error message for the denied relay to gmail.

jnolla
7th June 2007, 01:04
sorry here is the file

falko
7th June 2007, 17:24
Jun 6 17:32:00 server postfix/smtp[27089]: 267F61E743D: to=<cea_admin@ceared.com>, relay=none, delay=0.51, delays=0.01/0/0.5/0, dsn=5.4.6, status=bounced (mail for ceared.com loops back to myself)Please add ceared.com to the end of /etc/postfix/local-host-names and restart Postfix.

jnolla
8th June 2007, 20:29
Did it but it didn't work. The file was not there, but it created it.
Still lost here.

Thanks

jnolla
8th June 2007, 20:39
Here is the latest maillog. I believe they are the same errors still.

falko
9th June 2007, 12:55
Did it but it didn't work. The file was not there, but it created it.
Still lost here.

Don't you use ISPConfig? If you don't, then you must add ceared.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.

jnolla
9th June 2007, 18:31
Yes I do have ispconfig. I added this to destinations:
/etc/postfix/local-host-names

Which now has allowed to receive mail, using the file you otld me to create. But so far, for some reason only one testing account is receiving mail from the internal server only. If I send mail using gmail it gets rejected. I believe that problems comes for the settings on the tutorial for securing postfix.

Why is only one account only receiving mail? Still working on that one!
Thanks Falko

falko
10th June 2007, 15:41
Please check if your server is blacklisted: http://www.mxtoolbox.com/blacklists.aspx

What's the output of postconf -n?

jnolla
10th June 2007, 15:52
I get nothing back from the blacklist checker. Here is the output you requested.

Can't thank you enough Falko!

falko
11th June 2007, 15:16
Please run
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
and restart Postfix.
Is your server hosted on a dynamic IP address?

jnolla
13th June 2007, 19:29
Got it to work Falko!

The last command you gave me would stall postfix, and never send the messages. But I edited the security for the blacklist servers, and now it accepts incoming mail from gmail, and other accounts.

Do I still have to enter the domains hosted manually on:
/etc/postfix/local-host-names

My best guess is yes. I also think some of the errors came because of the DNS configuration at Godaddy, something to do with the mx records.

Best Regards, and thanks again Falko!

falko
14th June 2007, 22:48
Do I still have to enter the domains hosted manually on:
/etc/postfix/local-host-namesThis should be done by ISPConfig.