Benches Uncategorized

6

554 5.7.1: Relay access denied

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

hi
I have configured a mail server on a SLS xserve but I have some problems with incoming emails: using any email account to send a test mail to [email protected] (which is a valid account I can use to send messages), I receive the following error:

----- The following addresses had permanent fatal errors -----
<[email protected]>
(reason: 554 5.7.1 <[email protected]>: Relay access denied)

----- Transcript of session follows -----
... while talking to mail.mydomain.com.:
DATA
<<< 554 5.7.1 <[email protected]>: Relay access denied
554 5.0.0 Service unavailable
<<< 554 5.5.1 Error: no valid recipients

I have read some topics on this forum with similar issues but I couldn't solve mine, I'll post my postconf -n

biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
header_checks = pcre:/etc/postfix/customheaderchecks
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mail_owner = _postfix
mailboxsizelimit = 0
mailbox_transport = dovecot
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
messagesizelimit = 10485760
mydomain = mydomain.com
mydomain_fallback = localhost
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
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
smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated permit
smtpdenforcetls = no
smtpdhelorequired = yes
smtpdhelorestrictions = rejectinvalid_helohostname rejectnon_fqdn_helohostname
smtpdpw_server_securityoptions = cram-md5
smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
smtpdsasl_authenable = yes
smtpdtlsCAfile = /etc/certificates/mydomain.347A9DC2B6519982A6C3D71607EB9E0A466636CB.chain.pem
smtpdtls_certfile = /etc/certificates/mydomain.347A9DC2B6519982A6C3D71607EB9E0A466636CB.cert.pem
smtpdtls_excludeciphers = SSLv2, aNULL, ADH, eNULL
smtpdtls_keyfile = /etc/certificates/mydomain.347A9DC2B6519982A6C3D71607EB9E0A466636CB.key.pem
smtpdtlsloglevel = 0
smtpduse_pwserver = yes
smtpdusetls = yes
unknownlocal_recipient_rejectcode = 550
virtualaliasmaps =

is there any error?
any help is greatly greatly appreciated
thanks in advance

Message was edited by: novantadue

Message was edited by: novantadue

6 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Try and add your domain name to Server Admin -> Mail -> Settings -> Advanced -> Hosting -> Local Host Aliases

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    no way, same error
    it seems that my mail server is rejecting all SMTP connections, what is very strange is that I didn't tell it to do that

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    What does your log say (/var/log/mail.log)? You may need to increase logging level to information.

  4. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    thanks, I had already set it at "Debug" level, I have slightly different log messages when sending from gmail.com or from pippo.it but reason is the same

    gmail.com

    Jan 19 10:50:59 mail postfix/smtpd[1833]: connect from mail-ew0-f211.google.com[209.85.219.211]
    Jan 19 10:50:59 mail postfix/smtpd[1833]: NOQUEUE: reject: RCPT from mail-ew0-f211.google.com[209.85.219.211]: 450 4.7.1 <[email protected]>: *Recipient address rejected: Service is unavailable*; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-ew0-f211.google.com>
    Jan 19 10:50:59 mail postfix/smtpd[1833]: disconnect from mail-ew0-f211.google.com[209.85.219.211]

    pippo.it (80.253.x.x is public IP address)

    Jan 19 10:55:44 mail postfix/smtpd[1941]: warning: 80.253.x.x : address not listed for hostname mail.pippo.it
    Jan 19 10:55:44 mail postfix/smtpd[1941]: connect from unknown[80.253.x.x]
    Jan 19 10:55:44 mail postfix/smtpd[1941]: NOQUEUE: reject: RCPT from unknown[80.253.x.x]: 550 5.1.1 <[email protected]>: *Recipient address rejected: User unknown in local recipient table*; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.pippo.it>
    Jan 19 10:55:44 mail postfix/smtpd[1941]: disconnect from unknown[80.253.x.x]

  5. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The first error is due to greylisting (probably after retrying you will get the same error as in the second message).

    The second simply means that you either have not defined that user in WGM, or you have not mail enabled it, or not given it mail rights in Server Admin.

  6. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    ****, stupid error
    I was using [email protected] but that user's short name is admin, I forgot to add "novantadue" in short names list in WGM

    it's working now, thanks man, I owe you a beer