Discussion:
Postfix vs stunnel relay but outlook client can't sent
(too old to reply)
b***@gmail.com
2016-07-13 06:43:59 UTC
Permalink
I have a problem after setup postfix vs stunnel is relay host:
client outlook --->[postfix:25 relay to stunnel:1125]--->smtp.vt.com.vn:465

I can sent email via postfix with telnet command but can't sent email with outlook client. Help me! My config below:
1.postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = 172.16.1.0/24
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin $daemon_directory/$process_name $process_id & sleep 5
disable_dns_lookups = yes
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = vt.com.vn
mynetworks = 172.16.1.0/24,127.0.0.0/8
myorigin = vt.com.vn
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relayhost = [127.0.0.1]:1125
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_always_send_ehlo = yes
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = plain
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous noplaintext
smtp_tls_security_level = may
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_local_domain = $mydomain
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
unknown_local_recipient_reject_code = 550

2./etc/postfix/sasl_passwd

[127.0.0.1]:1125 username:password

3. Test telnet. It's work fine!
Connecting to 192.168.10.6:25...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
220 labnis.vt.com.vn ESMTP Postfix
EHLO VTCC-BIENTD
250-labnis.vt.com.vn
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM:<***@vt.com.vn>
250 2.1.0 Ok
RCPT TO:<***@vt.com.vn>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Test subject

blah blah
.
250 2.0.0 Ok: queued as 6811F86BBE2A
quit221 2.0.0 Bye

4.Output maillog when outlook test mail
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 220 labnis.vt.com.vn ESMTP Postfix
Jul 11 15:37:14 labnis postfix/smtpd[3569]: watchdog_pat: 0x7f50bf0fe250
Jul 11 15:37:14 labnis postfix/smtpd[3569]: < unknown[172.16.1.88]: EHLO BIENTD
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_list_match: unknown: no match
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_list_match: 172.16.1.88: no match
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-labnis.vt.com.vn
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-PIPELINING
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-SIZE 10240000
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-VRFY
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-ETRN
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-STARTTLS
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-ENHANCEDSTATUSCODES
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-8BITMIME
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250 DSN
Jul 11 15:37:14 labnis postfix/smtpd[3569]: watchdog_pat: 0x7f50bf0fe250
Jul 11 15:37:14 labnis postfix/smtpd[3569]: smtp_get: EOF
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_hostname: unknown ~? 172.16.1.0/24
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_hostaddr: 172.16.1.88 ~? 172.16.1.0/24
Jul 11 15:37:14 labnis postfix/smtpd[3569]: lost connection after EHLO from unknown[172.16.1.88]
Jul 11 15:37:14 labnis postfix/smtpd[3569]: disconnect from unknown[172.16.1.88]
d***@gmail.com
2016-07-13 17:47:39 UTC
Permalink
Post by b***@gmail.com
client outlook --->[postfix:25 relay to stunnel:1125]--->smtp.vt.com.vn:465
1.postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = 172.16.1.0/24
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin $daemon_directory/$process_name $process_id & sleep 5
disable_dns_lookups = yes
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = vt.com.vn
mynetworks = 172.16.1.0/24,127.0.0.0/8
myorigin = vt.com.vn
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relayhost = [127.0.0.1]:1125
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_always_send_ehlo = yes
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = plain
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous noplaintext
smtp_tls_security_level = may
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_local_domain = $mydomain
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
unknown_local_recipient_reject_code = 550
2./etc/postfix/sasl_passwd
[127.0.0.1]:1125 username:password
3. Test telnet. It's work fine!
Connecting to 192.168.10.6:25...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
220 labnis.vt.com.vn ESMTP Postfix
EHLO VTCC-BIENTD
250-labnis.vt.com.vn
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
250 2.1.0 Ok
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Test subject
blah blah
.
250 2.0.0 Ok: queued as 6811F86BBE2A
quit221 2.0.0 Bye
4.Output maillog when outlook test mail
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 220 labnis.vt.com.vn ESMTP Postfix
Jul 11 15:37:14 labnis postfix/smtpd[3569]: watchdog_pat: 0x7f50bf0fe250
Jul 11 15:37:14 labnis postfix/smtpd[3569]: < unknown[172.16.1.88]: EHLO BIENTD
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_list_match: unknown: no match
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_list_match: 172.16.1.88: no match
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-labnis.vt.com.vn
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-PIPELINING
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-SIZE 10240000
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-VRFY
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-ETRN
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-STARTTLS
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-ENHANCEDSTATUSCODES
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250-8BITMIME
Jul 11 15:37:14 labnis postfix/smtpd[3569]: > unknown[172.16.1.88]: 250 DSN
Jul 11 15:37:14 labnis postfix/smtpd[3569]: watchdog_pat: 0x7f50bf0fe250
Jul 11 15:37:14 labnis postfix/smtpd[3569]: smtp_get: EOF
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_hostname: unknown ~? 172.16.1.0/24
Jul 11 15:37:14 labnis postfix/smtpd[3569]: match_hostaddr: 172.16.1.88 ~? 172.16.1.0/24
Jul 11 15:37:14 labnis postfix/smtpd[3569]: lost connection after EHLO from unknown[172.16.1.88]
Jul 11 15:37:14 labnis postfix/smtpd[3569]: disconnect from unknown[172.16.1.88]
Hi

It looks like an Outlook issue :(

The telnet is from the server or from the 172.16.1.88 host ?

Regards

Victor

Loading...