HELO!

I've tried to configure postfix to relay mail from the hosts on the
local network to the outside world. In my case the server host is
192.168.50.9 and the host that originates the mail is 192.168.50.14

When I try to send a message from a Mac OS X client using Apple Mail
with 192.168.50.9 as SMTP server setting, I get this in the maillog:

Nov 10 14:14:41 rh2 postfix/smtpd[6981]: connect from unknown[192.168.50.14]
Nov 10 14:14:41 rh2 postfix/smtpd[6981]: lost connection after EHLO
from unknown[192.168.50.14]
Nov 10 14:14:41 rh2 postfix/smtpd[6981]: disconnect from unknown[192.168.50.14]
Nov 10 14:14:41 rh2 postfix/smtpd[6981]: connect from unknown[192.168.50.14]
, at which point mail client continues its attempts to send the
message, which, according to log (no new entries), is silently ignored
by postfix.

According to the comments in the main.conf, I have to specify this to
allow relay from my local network:
mynetworks = 192.168.50.0/24

I do not know yet how to teach my Mac to say EHLO properly (is it
necessary?), so I have also added an explicit (although it is a
default.):
smtpd_helo_required = no

Output of postconf -n
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
inet_interfaces = all
mail_owner = postfix
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = $myhostname
myhostname = rh2.tere.com
mynetworks = 192.168.50.0/24
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_helo_required = no
virtual_alias_maps = hash:/etc/postfix/valias
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_uid_maps = static:5000

Mail is sent without issues from the localhost. What am I missing?

Thank you.

Reply via email to