LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 06-23-2007, 05:26 PM   #1
TheDude05
Member
 
Registered: Jan 2005
Distribution: Debian, Ubuntu, RHEL
Posts: 36

Rep: Reputation: 15
Postfix outside network 220 response and EHLO


All connections from an outside network get a 220 respone from my server as

220 *******************************************

Also, outside networks are unable to do a EHLO command

EHLO example.com
502 5.5.2 Error: command not recognized



Heres my postfix config with certains options blurred for obvious reasons

Code:
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = ### removed ###
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = ### removed ###
mydestination =
relayhost =
mynetworks = 127.0.0.0/8 192.168.1.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

# Added later for relay
local_recipient_maps =
local_transport = error:local mail delivery is disabled
parent_domain_matches_subdomains = debug_peer_list, smtpd_access_maps
relay_domains = ### removed ###
transport_maps = hash:/etc/postfix/transport
relay_recipient_maps = hash:/etc/postfix/relay_recipients
virtual_alias_maps = hash:/etc/postfix/virtual
show_user_unknown_table_name = no
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

# outside ip address
proxy_interfaces = ### removed ###

# passes messages into MailScanner queue
header_checks = regexp:/etc/postfix/header_checks

Any ideas? Thanks.
 
Old 06-23-2007, 05:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
is it not the case that they have no logical reason to connect to? relaying is denied to those source addresses and you have no valid local domains or relay domains for those sources to want to speak to. what are you expecting the result of them not having this error to be? delivery to a local mailbox? edlivery to an@other.com?
 
Old 06-23-2007, 09:05 PM   #3
TheDude05
Member
 
Registered: Jan 2005
Distribution: Debian, Ubuntu, RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
Its our SMTP gateway that relays messages in and out the network for exchange. Local delivery is disabled. Also my relay_domains are entered fine, I just took them out of the config I posted so I wouldn't announce to the world what my domain name/ip range was.

It works fine outside of those 2 things I posted. If the host on the other end uses HELO (which they obviously have to) then postfix will tell them its hostname with a 250 status and everything is ok.
But I want ESMTP to work and one of the RFC standards is to announce your hostname on connect. Would it help to post my master.cf too?

Last edited by TheDude05; 06-23-2007 at 09:08 PM.
 
Old 06-26-2007, 09:57 AM   #4
TheDude05
Member
 
Registered: Jan 2005
Distribution: Debian, Ubuntu, RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
Anyone?


EDIT: FIXED!!! It ended up not being a postfix issue. Our Cisco Pix had fixup smtp enabled :P

Last edited by TheDude05; 06-26-2007 at 03:07 PM.
 
  


Reply

Tags
postfix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix malformed response error? taiwf Linux - Software 0 05-21-2006 09:21 PM
[SOLVED] Q3: Slow network response mattz40 Debian 9 04-05-2005 10:07 AM
Telnet no response to port 25 running Postfix shyee Fedora 2 01-09-2005 10:13 PM
SMPT EHLO [IP] instead of EHLO hostname pave Linux - General 0 10-12-2004 11:01 AM
Ehlo gubak Linux - Networking 1 08-10-2004 05:19 AM


All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration