# gnutls-cli-debug -p 587 MYRELAYHOST
Resolving 'MYRELAYHOST'...
Connecting to 'MYRELAYHOSTIP:587'...
Checking for TLS 1.1 support... no
Checking fallback from TLS 1.1 to... failed
Checking for TLS 1.0 support... no
Checking for SSL 3.0 support... no
Server does not support none of SSL 3.0, TLS 1.0 and TLS 1.1
Here are the relevant files:
/etc/postfix/main.cf (postconf -n)
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = localhost
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = SOMEDOMAIN.com
myhostname = MYSERVER.SOMEDOMAIN.com
mynetworks = IPADDRESS, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mydestination
relayhost = [MYRELAYHOST]:submission
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sender_dependent_authentication = yes
unknown_local_recipient_reject_code = 550
I also do have the /etc/postfix/sasl_passwd postmapped. Here is my
smptd.conf:
# cat /usr/lib64/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
An attempt to connect to my smtp server with a simple test message:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 MYSERVER.SOMEDOMAIN.com ESMTP Postfix
EHLO RELAYHOST
250-MYSERVER.SOMEDOMAIN.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:ACC...@SOMEDOMAIN.com
250 2.1.0 Ok
rcpt to:ACCO...@SOMEDOMAIN.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
TEST EMAIL
.
250 2.0.0 Ok: queued as E1C9B2C8005
quit
221 2.0.0 Bye
Connection closed by foreign host.
And the maillog:
Nov 24 15:31:32 MYSERVER postfix/smtpd[21968]: connect from localhost
[127.0.0.1]
Nov 24 15:32:05 MYSERVER postfix/smtpd[21968]: E1C9B2C8005:
client=localhost[127.0.0.1]
Nov 24 15:32:11 MYSERVER postfix/cleanup[21975]: E1C9B2C8005: message-
id=<2009112420320...@MYSERVER.SOMEDOMAIN.com>
Nov 24 15:32:11 MYSERVER postfix/qmgr[21343]: E1C9B2C8005:
from=<ACC...@SOMEDOMAIN.com>, size=414, nrcpt=1 (queue active)
Nov 24 15:32:12 MYSERVER postfix/smtpd[21968]: disconnect from
localhost[127.0.0.1]
Nov 24 15:32:17 MYSERVER postfix/smtp[21979]: E1C9B2C8005:
to=<ACCO...@SOMEDOMAIN.com>, relay=RELAYHOST[RELAYHOSTIP]:587,
delay=23, delays=18/0.01/0.21/5, dsn=5.7.1, status=bounced (host
RELAYHOST[RELAYHOSTIP] said: 530 5.7.1 Client was not authenticated
(in reply to MAIL FROM command))
Nov 24 15:32:17 MYSERVER postfix/cleanup[21975]: 3BEE12C8007: message-
id=<2009112420321...@MYSERVER.SOMEDOMAIN.com>
Nov 24 15:32:17 MYSERVER postfix/qmgr[21343]: 3BEE12C8007: from=<>,
size=2548, nrcpt=1 (queue active)
Nov 24 15:32:17 MYSERVER postfix/bounce[21981]: E1C9B2C8005: sender
non-delivery notification: 3BEE12C8007
Nov 24 15:32:17 MYSERVER postfix/qmgr[21343]: E1C9B2C8005: removed
Nov 24 15:32:23 MYSERVER postfix/smtp[21979]: 3BEE12C8007:
to=<ACC...@SOMEDOMAIN.com>, relay=RELAYHOST[RELAYHOSTIP]:587,
delay=5.2, delays=0.03/0/0.16/5.1, dsn=5.7.1, status=bounced (host
RELAYHOST[RELAYHOSTIP] said: 530 5.7.1 Client was not authenticated
(in reply to MAIL FROM command))
Nov 24 15:32:23 MYSERVER postfix/qmgr[21343]: 3BEE12C8007: removed
Any help would be appreciated, I'm at a loss right now and don't know
what to try next (I've done postfix, postfix with SASL, postfix with
SASL and TLS). What I don't want to do is to set up my own mail
server, as there is no point, I pay for service from the MTA I'm
trying to connect to.
I have the same issue. I have a Linux server with Postfix Client
trying to send email via smtp service in Exchange 2007 server. I'm
able to send email using "telnet smtp.server.com 25" using "AUTH
LOGIN" credentials. But I consistently get "5.7.1 Client was not
authenticated" when sending mail using "mail -s Test j...@x.com".
Did you solve your problem?
I found the solution to my problem. It appears postfix kept applying
the PIX workaround which disabled esmtp from the relayhost. I added
this line in main.cf "smtp_pix_workarounds = " and the problem went
away.