Resending messages after Postfix "Relay Not Allowed" failure

Yesterday my mail server was down due to a cofigurateion error in main.cf where mydestinations was missing my domain name mlml.calstate.edu. After correcting this end users are now asking what happened to the email that apparently was sent; is in there sent mailbox but has not been received by the destination user. I have looked in the /var/spool/imap/user/... directories and there are no entries during the down time:

-rw------- 1 cyrusima mail 4574 May 18 09:33 30803.
-rw------- 1 cyrusima mail 14606 May 18 09:34 30804.
-rw------- 1 cyrusima mail 2724 May 18 09:45 30807.
-rw------- 1 cyrusima mail 6435 May 18 09:46 30808. <-
-rw------- 1 cyrusima mail 2888 May 18 16:58 30813. <-
-rw------- 1 cyrusima mail 1381 May 18 16:59 30814.
-rw------- 1 cyrusima mail 1406 May 18 16:59 30815.

My OS X Mail client shows mail in the sent mailbox during the downtime and I received this email after the mail server came up at 16:58 but many end users are saying they did not receive CC's or internal email. All the emails I received after the server came up had resided in my outbox until the server came up. Users with problems are saying their email appeared to be sent, did not appear in their outbox.

Thanks
Jeff


ap100:/Volumes/ApplePie/var/spool/imap/user/jarlt root# postconf -n
alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
body_checks = regexp:/etc/postfix/body_checks
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
enable serveroptions = yes
html_directory = no
inet_interfaces = all
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
message sizelimit = 10485760
mydestination = $myhostname,localhost.$mydomain,localhost,mlml.calstate.edu,main.mlml.calstate. edu,ap100.mlml.calstate.edu
mydomain = mlml.calstate.edu
mydomain_fallback = mlml.calstate.edu
myhostname = ap100.mlml.calstate.edu
mynetworks = 192.190.45.0/24,127.0.0.1/32,198.189.27.0/24,205.155.75.0/24
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
owner requestspecial = no
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd clientrestrictions = permit_mynetworks permit
smtpd pw_server_securityoptions = none
smtpd recipientrestrictions = permit mynetworks,reject_unauthdestination,permit
smtpd sasl_authenable = no
smtpd tls_keyfile =
smtpd use_pwserver = no
unknown local_recipient_rejectcode = 550

Xserve G5, Mac OS X (10.4.6)

Posted on May 19, 2006 12:05 PM

Reply
6 replies

May 19, 2006 2:11 PM in response to R.Cerny

Thanks for your reply. That is the thing, there is nothing in the queue. What I would like to confirm is; When a mail message is sent, leaves the MUA and the server is generating Relay errors, are these messages stored in a spool directory or some place on the server (other than mqueue) where it appears to the end user that the email has been sent but in fact they have not? Or since the server is erroring do these messages go to the bit bucket?

Here is a log entry from the time when

May 18 14:25:20 ap100 postfix/smtpd[2944]: NOQUEUE: reject: RCPT from mail.cruzio.com[63.249.95.37]: 554 <oakden@mlml.calstate.edu>: Relay access denied; from=<skim@mlml.calstate.edu> to=<oakden@mlml.calstate.edu> proto=SMTP helo=<mail.cruzio.com>
May 18 14:25:20 ap100 postfix/smtpd[2944]: NOQUEUE: reject: RCPT from mail.cruzio.com[63.249.95.37]: 554 <skim@mlml.calstate.edu>: Relay access denied; from= to=<skim@mlml.calstate.edu> proto=SMTP helo=<mail.cruzio.com>

May 19, 2006 4:17 PM in response to ctrlArltdelete

I was just told that our email lists are not working. I checked and Mail Lists had been disabled so I enabled them and this is now in the queue "LISTNAME-bounces@mlml.calstate.edu". So these messages are being cached somewhere and the MUA is not being notified that they are not sent. None of these messages were in the queue prior to turning on Mail Lists.


C9C9D305358* 1256 Fri May 19 16:09:30 facilities-bounces@mlml.calstate.edu
vburrows2@loadingdockparts.com

DAE3130555B* 3785 Fri May 19 16:10:15 ndepalma@csmh.org
fairey@mlml.calstate.edu

DBE3D305353* 9932 Fri May 19 16:09:29 students-bounces@mlml.calstate.edu
students-owner@mlml.calstate.edu

E3D883053B0* 3134 Fri May 19 16:09:38 students-bounces@mlml.calstate.edu
aalifano@mlml.calstate.edu
abyington@mlml.calstate.edu
acarlisle@mlml.calstate.edu
agerke@mlml.calstate.edu
byte 66857

May 19, 2006 8:06 PM in response to ctrlArltdelete

No mail should have disapeared.

While the server was misconfigured, it was really up but rejecting incoming mail to the domain with user unknown. The mail was rejected and should have bounced to the sender.

When the server was down (stopped) the sending smtp server would normally try your backup MX host, but you don't have one. So that server would hold the mail and retry at preset intervals. So this mail should have eventually been delivered to the recipient.

But it sounds like most of your mail should have bounced.

Jeff

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.

Resending messages after Postfix "Relay Not Allowed" failure

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