Hi Stoiko, Im sure you can probably answer this in 1 line?
I am testing something that PMG doesnt approve, however its my test appliance and I wanted to see its possibilities as I wouldnt mind sending our emails through a PMG than MailGun - however that needs to connect to a mailserver with user credentials.
So my steps so far are
/etc/pmg/templates/main.cf.in
Then for the password file:
/etc/postfix/sasl_passwd
When I try to connect, I get the following error:
One thing I noticed was that 250-STARTTLS was missing when using openssl connection although all the SSL chain appears correct and valid. However when using Telnet, 250-STARTTLS does show correctly.
I must have done/misunderstood something simple wrong and any help would be much appreciated.
I am testing something that PMG doesnt approve, however its my test appliance and I wanted to see its possibilities as I wouldnt mind sending our emails through a PMG than MailGun - however that needs to connect to a mailserver with user credentials.
So my steps so far are
/etc/pmg/templates/main.cf.in
Code:
# Set Password DB
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
# Set default security level http://www.postfix.org/postconf.5.html#smtp_tls_security_level
smtp_tls_security_level = encrypt
# Set RECEIVE connector
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
#smtpd_sasl_security_options = noanonymous, noplaintext
#smtpd_sasl_tls_security_options = noanonymous
# Set SEND connector
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
#smtp_sasl_security_options = noanonymous, noplaintext
#smtp_sasl_tls_security_options = noanonymous
Then for the password file:
Code:
postmap /etc/postfix/sasl_passwd
chown root:root /etc/postfix/sasl_passwd
chmod 0600 /etc/postfix/sasl_passwd
postmap hash:/etc/postfix/sasl_passwd
/etc/postfix/sasl_passwd
Code:
# Per-sender authentication; see also /etc/postfix/sender_relay.
user1@example.com username1:password1
#user2@example.net username2:password2
When I try to connect, I get the following error:
Code:
ehlo validrelaydomain.com.au
250-splaam.domain.com.au
250-PIPELINING
250-SIZE 52430000
250-VRFY
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 NTLM LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
AUTH LOGIN
dXNlcm5hbWUx
cGFzc3dvcmQx
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
535 5.7.8 Error: authentication failed: authentication failure
One thing I noticed was that 250-STARTTLS was missing when using openssl connection although all the SSL chain appears correct and valid. However when using Telnet, 250-STARTTLS does show correctly.
I must have done/misunderstood something simple wrong and any help would be much appreciated.
Last edited: