Link to home
Start Free TrialLog in
Avatar of efegue
efegue

asked on

Postfix is different inside than outside?

I can't get my postfix to work correctly.
When I connect inside the server at localhost I have something like:

root@SFTSRVDB01:/etc/postfix# telnet 192.168.96.200 25
Trying 192.168.96.200...
Connected to mail.domain.com.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-mail.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME


When I try to connect outside, I dont have nothing similar.. "ehlo" command does not work for example..
220 ******************************************
ehlo mail.domain.com
502 Error: command not implemented


This does not make sense for me, can it be a firewall port that isnt opened?
Avatar of grblades
grblades
Flag of United Kingdom of Great Britain and Northern Ireland image

You are able to make a connection so it isnt a firewall issue.

Can you run 'postconf -n' and post the output here.
some guy here had the same problem: http://archives.neohapsis.com/archives/postfix/2005-02/thread.html#706

There's a thread called: "EHLO command not implemented from external connections "
I suppose it could be a firewall issue if from outside you are being redirected to an incorrect server.
ASKER CERTIFIED SOLUTION
Avatar of grblades
grblades
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Cyclops3590
Cyclops3590
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of efegue
efegue

ASKER

root@SFTSRVDB01:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
mydestination = mail.domain.com, localhost
myhostname = mail.domain.com
mynetworks = 127.0.0.0/8
myorigin = $mydomain
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options =
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = domain.com
virtual_alias_maps = hash:/etc/postfix/virtual


Yes the server is behind a Cisco Firewall (PIX OS)..
I'll have a look at it then!

Thanks a lot for the suggestions.
Avatar of efegue

ASKER

ok, it was really the Cisco..

I gave 400 points for grblades for the right answer and 100 points for Cyclops3590 for the right command, only "protocol" was missing..

Thanks both ;)