[CentOS] Not receiving mail

Mon Oct 18 21:31:52 UTC 2010
Alexander Dalloz <ad+lists at uni-x.org>

Am 18.10.2010 23:22, schrieb Dotan Cohen:

> Well, I tried:
> 
> [root at mercury ~]# ls -l /etc/aliases
> -rw-r--r-- 1 root root 1512 Apr 25  2005 /etc/aliases
> [root at mercury ~]# newaliases
> [root at mercury ~]# service postfix restart
> Shutting down postfix:                                     [  OK  ]
> Starting postfix:                                          [  OK  ]
> [root at mercury ~]# service postfix status
> master (pid 12412) is running...
> [root at mercury ~]# tail /var/log/maillog
> Oct 18 23:15:59 mercury postfix/master[7816]: warning:
> /usr/libexec/postfix/smtpd: bad command startup -- throttling
> Oct 18 23:16:18 mercury dovecot: imap-login: Login: user=<sami37>,
> method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
> Oct 18 23:16:18 mercury dovecot: IMAP(sami37): Disconnected: Logged out
> Oct 18 23:16:59 mercury postfix/smtpd[12298]: fatal: open database
> /etc/aliases.db: No such file or directory

Sendmail is still the default on CentOS. So to switch to Postfix you
will have to use the mechanism to relink - using alternatives.

What prints out: alternatives --display mta
If that tells you that Sendmail is still the primary MTA, then run:

alternatives --config mta

and select Postfix. Then rerun "newaliases" or "postalias /etc/aliases".

Alexander