[Postfixbuch-users] Mail for localhost.localdomain loops back to myself??

Marcel Hartmann mail at marcel-hartmann.com
Mi Feb 16 16:03:43 CET 2005

Hello Postfix List!

I'm searchin in google the hole day, but i can't fix my Problem.

My System is a Fedory Core 3 Server with
postfix/cyrus-imapd/saslauthd/pam_mysql and amavisd-new, etc.

All Domains are Virtual in the mysql Database. I use the Howto from Luc De
Louw, to install it. All works fine for me.

But i have one error that i can't solve.

root Mails are not delivered from syslog since a few weeks!

I try out with alias to my adress and without a alias!!!
But if root takes mutt to read his mails, there are no mails in his inbox,

I have try out a alias in /etc/aliases with contains this _> root:
myprivatemail at dom.tld I made newaliases and the new alias is counted in the
output from newaliases.

To test the behaviours, i use this -> less /var/log/maillog | mail -s "test
to root" root i only post my maillog in a mail to root ;)

But in the maillog this happens:

Feb 16 15:49:45 localhost postfix/smtpd[29230]: connect from
localhost[] Feb 16 15:49:45 localhost postfix/smtpd[29230]: setting
up TLS connection from localhost[] Feb 16 15:49:45 localhost
postfix/smtpd[29230]: TLS connection established from localhost[]:
TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Feb 16 15:49:45
localhost sendmail[29229]: STARTTLS=client, relay=[],
version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Feb 16 15:49:45 localhost postfix/smtpd[29230]: 19C65508320:
client=localhost[], sasl_sender=root at localhost.localdomain
Feb 16 15:49:45 localhost postfix/cleanup[29237]: 19C65508320:
message-id=<200502161449.j1GEniFA029229 at localhost.localdomain>
Feb 16 15:49:45 localhost sendmail[29229]: j1GEniFA029229: to=root,
ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay,
pri=1341830, relay=[] [], dsn=2.0.0, stat=Sent (Ok: queued
as 19C65508320) Feb 16 15:49:45 localhost postfix/qmgr[29156]: 19C65508320:
from=<root at localhost.localdomain>, size=1326917, nrcpt=1 (queue active) Feb
16 15:49:45 localhost postfix/smtpd[29230]: disconnect from
localhost[] Feb 16 15:49:50 localhost postfix/smtp[29241]:
19C65508320: to=<root at localhost.localdomain>, relay=none, delay=5,
status=bounced (mail for localhost.localdomain loops back to myself) Feb 16
15:49:50 localhost postfix/cleanup[29237]: A5AE8508324:
message-id=<20050216144950.A5AE8508324 at mailrelay.snitch.de>
Feb 16 15:49:50 localhost postfix/qmgr[29156]: A5AE8508324: from=<>,
size=51936, nrcpt=1 (queue active) Feb 16 15:49:50 localhost
postfix/qmgr[29156]: 19C65508320: removed

.and if i send the mail to root at snitch.de or root at localhost or the virtuall
adress of the virtual domains root at mailrelay.snitch.de all take the same
error in maillog. ;(

Here are my config Parameters:

main.cf ->
myhostname = mailrelay.snitch.de
mydomain = snitch.de
mydestination = $myhostname, $mydomain,
mysql:/etc/postfix/mysql-mydestination.cf (virtual domains etc. in mysql
Database!!) inet_interfaces = all alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases newaliases_path =
/usr/bin/newaliases.postfix virtual_alias_maps = hash:/etc/postfix/virtual,
mysql:/etc/postfix/mysql-virtual.cf <. i use mysql AND the old config for
the local user mailboxes i think!?!
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf

Why there are no mails delivered to the standard inbox to root? Should i put
the root User in mysql to the sntch.de domain? If i use mutt i can only see
mails as there is the last from the 02.02.2005! What i made wrong here? I
use the localhost etc. in mydestination, but he say's Mail for * loops bacl
to myself.

All other features are working correctly, but i need my syslog mails to my
private adress ;(

Greets from Germany,

Marcel Hartmann

Mehr Informationen über die Mailingliste Postfixbuch-users