Hi all,

I'm in the process of setting up a SMTP server, and I've hit a snag with my
mail client where it seems to only ever return a 554 error, in my sendmail
equivalent at that point it would return a 550 "Relaying rejected, please
authenticate".

I tried forcing the error code at that point to being a 550, but once it
attempts the 'AUTH GSSAPI' stage it looks to fail too, because I think
postfix isn't ready to recieve authentication anymore.

However, things seem to go well if before even trying to do a RCPT TO, an
AUTH LOGIN or similar works.

The following is my main.cf and client logs (without forcing the 550).

Apologies if not in-depth enough, or there's something obvious I've missed

mydestination=mail.domain
relayhost=mail.domain
masquerade_domains=domain
mynetworks=127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
inet_interfaces=all
smtpd_relay_restrictions=permit_inet_interfaces,defer_unauth_destination
message_size_limit=250000000
virtual_alias_maps=hash:/etc/aliases.map
smtp_header_checks=regexp:/etc/postfix/smtp-header-checks.re
myorigin=hostname
masquerade_domains=domain
smtp_header_checks=regexp:/etc/postfix/smtp-header-checks.re
local_header_rewrite_clients=static:all
mailbox_size_limit=0
recipient_delimiter=+
inet_protocols=all
smtpd_sasl_path=smtpd
smtpd_sasl_auth_enable=yes
smtpd_sasl_security_options=noanonymous
smtpd_recipient_restrictions=permit_sasl_authenticated,reject_unauth_destination
smtp_use_tls=yes
smtpd_use_tls=yes
smtp_tls_security_level=encrypt
smtpd_tls_security_level=encrypt
smtp_tls_note_starttls_offer=yes
smtpd_tls_cert_file=/etc/pki/tls/certs/cert.crt
smtpd_tls_key_file=/etc/pki/tls/private/key.key
smtpd_tls_CAfile=/etc/pki/tls/certs/chain.chain
smtpd_tls_CApath=/etc/pki/tls/cets/ca.CA
smtpd_tls_loglevel=1

===
IMAP DEBUG 14:17:19 5/15: 220 hostname ESMTP Postfix
IMAP DEBUG 14:17:19 5/15: EHLO desktop
IMAP DEBUG 14:17:19 5/15: 250-hostname
IMAP DEBUG 14:17:19 5/15: 250-PIPELINING
IMAP DEBUG 14:17:19 5/15: 250-SIZE 250000000
IMAP DEBUG 14:17:19 5/15: 250-VRFY
IMAP DEBUG 14:17:19 5/15: 250-ETRN
IMAP DEBUG 14:17:19 5/15: 250-AUTH GSSAPI DIGEST-MD5 LOGIN PLAIN
IMAP DEBUG 14:17:19 5/15: 250-ENHANCEDSTATUSCODES
IMAP DEBUG 14:17:19 5/15: 250-8BITMIME
IMAP DEBUG 14:17:19 5/15: 250-DSN
IMAP DEBUG 14:17:19 5/15: 250 CHUNKING
Opened SMTP server "hostname"
IMAP DEBUG 14:17:19 5/15: MAIL FROM:<user@domain>
IMAP DEBUG 14:17:19 5/15: 250 2.1.0 Ok
IMAP DEBUG 14:17:19 5/15: RCPT TO:<user+test@domain>
IMAP DEBUG 14:17:19 5/15: 554 5.7.1 <user+test@domain>: Relay access denied
IMAP DEBUG 14:17:19 5/15: RSET
IMAP DEBUG 14:17:19 5/15: 250 2.0.0 Ok
Mail not sent. Sending error: 554 One or more recipients failed
Send Error: "554 5.7.1 <user+test@domain>: Relay access denied"
IMAP DEBUG 14:17:19 5/15: QUIT
IMAP DEBUG 14:17:19 5/15: 221 2.0.0 Bye
call_mailer ERROR: Mail not sent: <user+test@domain>: Relay access denied
Send failed, continuing

Thanks,
Maya
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to