Mail occasionally "loops back to myself"

Dear all,

I'm running 10.4.6 server as a mail server.

Since a couple of days, mails sent out by my users occasionally ⚠ bounces with a "address loops back to myself" error.

Sometimes, after an hour, everything is fine.

In the log file it looks like this (mail address has been masked):

May 15 12:21:52 mail postfix/smtp[16932]: B997092184B: to=<AAAAAA@physik.rwth-aachen.de>, relay=0[0.0.0.0], delay=1, status=bounced (mail for physik.rwth-aachen.de loops back to myself)
May 15 13:40:35 mail postfix/smtp[17571]: A5315922224: to=<AAAAAA@physik.rwth-aachen.de>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=17558-02, from MTA: 250 Ok: queued as 3697692222F)

Any postfix expert here? postconf -n looks like this:

access map_rejectcode = 554
alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
berkeley db_create_buffersize = 16777216
berkeley db_read_buffersize = 131072
body checks_sizelimit = 51200
bounce sizelimit = 50000
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug peerlevel = 2
default delivery_slotcost = 5
default delivery_slotdiscount = 50
default delivery_slotloan = 3
default destination_concurrencylimit = 20
default destination_recipientlimit = 50
default extra_recipientlimit = 1000
default minimum_deliveryslots = 3
default processlimit = 100
default recipientlimit = 10000
defer_code = 450
deliver lockattempts = 20
duplicate filterlimit = 1000
enable serveroptions = yes
fallback_relay = 0
fallback_transport = 0
fault injectioncode = 0
fork_attempts = 5
hash queuedepth = 1
hopcount_limit = 50
html_directory = no
inet_interfaces = all
initial destinationconcurrency = 5
invalid hostname_rejectcode = 501
line lengthlimit = 2048
lmtp tcpport = 24
local destination_concurrencylimit = 2
local destination_recipientlimit = 1
local recipientmaps = proxy:unix:passwd.byname $alias_maps
luser_relay =
mail_owner = postfix
mailbox sizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps rbldomains =
maps rbl_rejectcode = 554
max_use = 100
message sizelimit = 10240000
mime boundary_lengthlimit = 2048
mime nestinglimit = 100
mydestination = $myhostname,$mydomain,whep.uni-wuppertal.de
mydomain = physik.uni-wuppertal.de
mydomain_fallback = localhost
myhostname = mail.physik.uni-wuppertal.de
mynetworks = 127.0.0.1/32,132.195.104.0/24,132.195.105.0/24,132.195.108.0/24,132.195.109.0/2 4
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
non fqdn_rejectcode = 504
owner requestspecial = no
qmgr fudgefactor = 100
qmgr message_activelimit = 20000
qmgr message_recipientminimum = 10
qmqpd authorizedclients = 0
queue_directory = /private/var/spool/postfix
queue file_attribute_countlimit = 100
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relay domains_rejectcode = 554
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp line_lengthlimit = 990
smtpd clientrestrictions = permit_mynetworks, permit saslauthenticated, reject unknownclient, reject rblclient relays.ordb.org
smtpd hard_errorlimit = 20
smtpd helorequired = yes
smtpd helorestrictions = permit_mynetworks, reject invalidhostname, reject unknownhostname, reject non_fqdnhostname
smtpd history_flushthreshold = 100
smtpd junk_commandlimit = 100
smtpd noopcommands = 0
smtpd pw_server_securityoptions = login
smtpd recipientlimit = 1000
smtpd recipientrestrictions = permit sasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpd sasl_authenable = yes
smtpd sasl_securityoptions = noanonymous
smtpd senderrestrictions = reject unknown_senderdomain, reject non_fqdn_sendersmtpd_soft_errorlimit = 10
smtpd tls_certfile = /etc/certificates/mail.physik.uni-wuppertal.de.crt
smtpd tls_keyfile = /etc/certificates/mail.physik.uni-wuppertal.de.key
smtpd use_pwserver = yes
smtpd usetls = yes
unknown address_rejectcode = 450
unknown client_rejectcode = 450
unknown hostname_rejectcode = 450
unknown local_recipient_rejectcode = 550
unknown relay_recipient_rejectcode = 550
unknown virtual_alias_rejectcode = 550
unknown virtual_mailbox_rejectcode = 550
virtual mailboxdomains =
virtual mailboxlimit = 51200000
virtual minimumuid = 100


XServe Mac OS X (10.4.6)

Posted on May 15, 2006 5:22 AM

Reply
6 replies

May 15, 2006 8:34 AM in response to Torsten Harenberg

Sorry for replying to myself, but the complete log entry is like this:

May 15 12:21:51 mail postfix/smtp[16450]: 28B4F921840: to=<AAAAA@physik.rwth-aachen.de>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=16918-02, from MTA: 250 Ok: queued as B997092184B)
May 15 12:21:52 mail postfix/smtp[16932]: B997092184B: to=<AAAAA@physik.rwth-aachen.de>, relay=0[0.0.0.0], delay=1, status=bounced (mail for physik.rwth-aachen.de loops back to myself)
May 15 13:40:35 mail postfix/smtp[17571]: A5315922224: to=<AAAAA@physik.rwth-aachen.de>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=17558-02, from MTA: 250 Ok: queued as 3697692222F)
May 15 13:40:38 mail postfix/smtp[17595]: 3697692222F: to=<AAAAA@physik.rwth-aachen.de>, relay=relay4.rwth-aachen.de[134.130.3.5], delay=3, status=sent (250 2.0.0 k4FBeZVF001504 Message accepted for delivery)

May 15, 2006 8:56 AM in response to Torsten Harenberg

Torsten,

I didn't have much time to look at your configuration, but I noticed the one bouncing is showing IP 0.0.0.0.
I also noticed that you are using 4 mail relay servers with same priority, so I guess you are "round robin'"/load balancing. My gut feeling is that the "occasional" message being bounced has something to do with one of the 4 servers.

The fact you use postfix rate controls and several mail relay servers, makes me believe that you probably also did some modifications to your master.conf. If you did, make sure you haven't added/modified some service with wrong data inside master.cf.

As I said, just a quick glance. Will have a better look later.

May 15, 2006 10:39 AM in response to Torsten Harenberg

Hi Torsten,

sorry, missed that part (didn't read carefully enough).
So you are sending from "Wuppertal" to "Aachen". Does this only happen when sending to "physik.rwth-aachen.de" or does it happen with any domain?

If it happens only with this domain, they may have some issues with their mail server and/or DNS. If it happens with any domain let me know.

Alex

May 17, 2006 11:40 AM in response to pterobyte

Found the solution thanks to an answer by Greg Hackney on alt.comp.mail.postfix:

Greg Hackney wrote:

What looks strange is "relay=0[0.0.0.0]" as shown in the log files.

My first guess would be that some of the main.cf configs have several items
set to zero "0", but they should be left blank if no value is desired.

For example:
fallback_relay = 0
fallback_transport = 0
smtpd noopcommands = 0
qmqpd authorizedclients = 0

Should be:
fallback_relay =
fallback_transport =
smtpd noopcommands =
qmqpd authorizedclients =



That looks like a "bug" in the Apple GUI, as I never changed those parameters by hand. But I saved and loaded the server configuration with the "Server Admin", afterwards the problem appeared.

Thanks to all who helped.

Torsten


Mac OS X (10.4.6)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail occasionally "loops back to myself"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.