Email Server (PostFix)

I have updated my server from CentOS 4.8 to CentOS 5.4.
Backup all virtualserver, formatted and reinstalled a clean CentOS 5.4.
Restored from backup all virtual servers.
Installed php 5.2.x from bleeding repo.
Everything seems ok but Email.
The problem is that noone is able to receive emails.

the last 20 rows from /var/log/maillog:
--------------------------------
Mar 26 10:31:07 laurienzo postgrey[2545]: action=greylist, reason=new, client_name=static-mum-59.181.136.101.mtnl.net.in, client_address=59.181.136.101, sender=ylixy2003@mtnl.net.in, recipient=tonio@al69.net
Mar 26 10:31:08 laurienzo postgrey[2545]: action=greylist, reason=new, client_name=125-230-85-56.dynamic.hinet.net, client_address=125.230.85.56, sender=subcontractsz93@rostinvest.com, recipient=_upro_fabrice_looker@al69.org
Mar 26 10:31:08 laurienzo postfix/smtpd[3449]: NOQUEUE: reject: RCPT from static-mum-59.181.136.101.mtnl.net.in[59.181.136.101]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/al69.it.html; from= to= proto=ESMTP helo=
Mar 26 10:31:08 laurienzo postgrey[2545]: action=greylist, reason=new, client_name=0-54-132-95.pool.ukrtel.net, client_address=95.132.54.0, sender=earua3004@ukrtel.net, recipient=jeninedionne@al69.com
Mar 26 10:31:08 laurienzo postgrey[2545]: action=greylist, reason=new, client_name=deu95-1-82-229-75-38.fbx.proxad.net, client_address=82.229.75.38, sender=etoypatidu8871@proxad.net, recipient=infod@al69.com
Mar 26 10:31:08 laurienzo postfix/smtpd[3450]: NOQUEUE: reject: RCPT from unknown[219.147.203.61]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/al69.org.html; from= to= proto=ESMTP helo=
Mar 26 10:31:08 laurienzo postfix/smtpd[3276]: NOQUEUE: reject: RCPT from static-mum-59.181.136.101.mtnl.net.in[59.181.136.101]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/al69.net.html; from= to= proto=ESMTP helo=
Mar 26 10:31:08 laurienzo postfix/smtpd[4562]: NOQUEUE: reject: RCPT from 125-230-85-56.dynamic.hinet.net[125.230.85.56]: 450 4.2.0 <_upro_fabrice_looker@al69.org>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/al69.org.html; from= to=<_upro_fabrice_looker@al69.org> proto=ESMTP helo=<125-230-85-56.dynamic.hinet.net>
Mar 26 10:31:08 laurienzo postfix/smtpd[4561]: NOQUEUE: reject: RCPT from 0-54-132-95.pool.ukrtel.net[95.132.54.0]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/al69.com.html; from= to= proto=ESMTP helo=
Mar 26 10:31:08 laurienzo postfix/smtpd[4485]: NOQUEUE: reject: RCPT from deu95-1-82-229-75-38.fbx.proxad.net[82.229.75.38]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/al69.com.html; from= to= proto=ESMTP helo=
Mar 26 10:31:08 laurienzo postfix/smtpd[4485]: disconnect from deu95-1-82-229-75-38.fbx.proxad.net[82.229.75.38]
Mar 26 10:31:08 laurienzo postfix/smtpd[4561]: disconnect from 0-54-132-95.pool.ukrtel.net[95.132.54.0]
Mar 26 10:31:08 laurienzo postfix/smtpd[3449]: disconnect from static-mum-59.181.136.101.mtnl.net.in[59.181.136.101]
Mar 26 10:31:08 laurienzo postfix/smtpd[3276]: disconnect from static-mum-59.181.136.101.mtnl.net.in[59.181.136.101]
Mar 26 10:31:08 laurienzo postfix/smtpd[4562]: lost connection after DATA from 125-230-85-56.dynamic.hinet.net[125.230.85.56]
Mar 26 10:31:08 laurienzo postfix/smtpd[4562]: disconnect from 125-230-85-56.dynamic.hinet.net[125.230.85.56]
Mar 26 10:31:10 laurienzo postfix/smtpd[4572]: connect from p57B7A51B.dip0.t-ipconnect.de[87.183.165.27]
Mar 26 10:31:10 laurienzo postgrey[2545]: action=greylist, reason=new, client_name=p57B7A51B.dip0.t-ipconnect.de, client_address=87.183.165.27, sender=wiair7349@t-ipconnect.de, recipient=terry_lackeywp@al69.net
Mar 26 10:31:10 laurienzo postfix/smtpd[4572]: NOQUEUE: reject: RCPT from p57B7A51B.dip0.t-ipconnect.de[87.183.165.27]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/al69.net.html; from= to= proto=ESMTP helo=
Mar 26 10:31:10 laurienzo postfix/smtpd[4572]: disconnect from p57B7A51B.dip0.t-ipconnect.de[87.183.165.27]

--------------------------------

Status: 
Active

Comments

Howdy -- it doesn't look like there's any errors in the above output. Those all look like good greylisting messages.

Are you seeing any errors in the procmail log, in /var/log/procmail?

Also, you may want to verify that your hostname matches what shows up in /etc/hosts and in the Postfix config.

That is, if you run "hostname", whatever output you have should be an "FQDN". And that FQDN should be listed in /etc/hosts, as well as on the mydestination line of /etc/postfix/main.cf file.

Also, if you take one of the domains you're having trouble with, and run it through a DNS report intodns.com, does the MX record they show there match what you'd expect it to be?

procmail log, in /var/log/procmail:

From mailman-bounces@laurienzo.it Thu Mar 18 11:34:46 2010
Subject: Your new mailing list: mailman
Folder: /root/Maildir/new/1268908486.7675_0.laurienzo.it 2143
Time:1268908486 From:mailman-owner@laurienzo.it To:root@localhost.localdomain User:root Size:2204 Dest:/root/Maildir/new/1268908486.7675_0.laurienzo.it Mode:None
From www@zeus.websurfing.nl Thu Mar 18 14:37:44 2010
Subject: [SPAM] You have received a greeding e-card !
Folder: /dev/null 5868
Time:1268919470 From:webmaster@Hallmark.com To:valeria@feldenkrais.is.it User:valeria Size:5868 Dest:/dev/null Mode:Spam
From ylapea7412@mm.pl Thu Mar 18 14:40:16 2010
Subject: [SPAM] Come in, valeria! 75% Discounts all week
Folder: /dev/null 10924
Time:1268919620 From:ylapea7412@mm.pl To:valeria@feldenkrais.is.it User:valeria Size:10924 Dest:/dev/null Mode:Spam
From BPOL@poste.it Mon Mar 22 22:19:06 2010
Subject: Misure di sicurezza - Dati Personali Poste Italian A.s.P.
Folder: /home/laurienzo/Maildir/new/1269292746.32592_1.laurienzo.it 3762
Time:1269293351 From:BPOL@poste.it To: User:laurienzo Size:3807 Dest:/home/laurienzo/Maildir/new/1269292746.32592_1.laurienzo.it Mode:None
procmail: Program failure (1) of "/etc/webmin/virtual-server/clam-wrapper.pl"
From ojbqxt@yyhmail.com Wed Mar 24 17:28:29 2010
Subject: RE: anmarkus ha inviato una domanda sull'oggetto numero 110501184328
Folder: /dev/null 16110
Time:1269448109 From:ojbqxt@yyhmail.com To: User:laurienzo Size:16111 Dest:/dev/null Mode:Virus

[root@laurienzo ~]# hostname
laurienzo.it

/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
62.149.201.229 laurienzo.it

mydestination line of /etc/postfix/main.cf
mydestination = $myhostname, localhost.$mydomain, localhost, localhost.localdomain

maybe I made a mistake during virtualminpro install ?
I remember i inserted the name of my main domain (laurienzo.it) when asking for a full qualified domain name ... or something similar

One of the errors I see above suggests that ClamAV may not be running.

If you restart ClamAV, does that help?

I don't know the name of the init script on CentOS, but it'd be something along the lines of:

/etc/init.d/clamav-daemon restart

nothing happens ...

Alright, it looks like I may need to take a look myself to get an idea of what's going on -- would it be possible to get root access to your server?

If that's okay, you can either email root login details to eric@virtualmin.com, or use the Virtualmin Support module to enable Remote Support. Thanks!

Thank you andrey I have already set a support access

What's an example of an email address which should work correctly, but doesn't?

I sent a test email to "antonio@laurienzo.it". It did reach your server, though according to the mail logs it's being caught in the catchall setup for your domain called "BOUNCE".

One thing you might want to do is go into System Settings -> Re-Check Config, and make sure it doesn't notice anything unusual.

all virtual servers do not receive emails
for example:
antonio@laurienzo.it
valeria@feldenkrais.is.it
info@aav-barbini.it
and every users on server

is it possible that restoring from a centos 4.8 backup there is something that do not correspond with centos 5.4 ?
I have anyway a copy of all old system in /vecchiodisco

if i do a system check it says:
Checking Configuration

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

BIND DNS server is installed, and the system is configured to use it.

Mail server Postfix is installed and configured.

Apache is installed.

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPd is installed.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and assumed to be running.

The System and Server Status module is installed and checking on schedule.

Plugin AWstats reporting is installed OK.

Plugin Bootup actions is installed OK.

Plugin DAV Login is installed OK.

Plugin Mailman is installed OK.

Plugin Protected web directories is installed OK.

Plugin Additional content styles is installed OK.

Plugin Additional content styles from OpenWebDesign.org is installed OK.

Plugin Subversion repositories is installed OK.

Plugin Virtualmin Support Links is installed OK.

Using network interface eth0 for virtual IPs.

IPv6 addresses are available, using interface eth0.

Default IP address for virtual servers is 62.149.201.229.

Default IP address is set to 62.149.201.229, which matches the detected external address.

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

Resource limits are supported and configured correctly.

The selected package management and update systems are installed OK.

.. your system is ready for use by Virtualmin.

Okay, it looks like there was a catchall address for laurienzo.it that wasn't behaving properly; it was catching all emails and bouncing them.

What's odd about that is that is appeared after the correct entries for your address. However, removing the errant entry seems to have solved the problem, I was able to send a test message to your account.

I also made some other minor modifications that may help with the other sites as well.

Can you test things out and see if that works properly for you?

I am doing a test on all domains, I just have few questions: 1) What exactly have you done ? 2) I have to restore other 20 domains from old backup, is there something i have to pay attention after restoring to not generate similar problems ?

Howdy -- I removed the catchall entry that was pointing to a non-existent account called "BOUNCE".

Once I did that, emails to you began going through correctly.

I also changed the order of some entries in the virtual file, to make sure a domain's initial definition occurred before the user account lines.

I'm not sure if the order matters, but I wanted to make absolute certain it didn't :-)

That is, if you had a user "user@example.com", there would be an entry in the virtual file which looks like "example.com example.com". I made sure that came before any entry that includes "user@example.com" in it.