|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Andrew Long (along
escapewire.com)
Date: Wed Oct 10 2007 - 10:59:38 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Subject: Re: local mail setup help
>
> Andrew Long wrote:
> > running postfix-2.3.3-2 on CentOS 5, I am looking to have this host
> > receive mail for local users FROM all machines on the same subnet
> > (domain = escapewire.local) 192.168.10.x..
>
> so this is 192.168.10.0/24. your mynetworks only contains a
> subrange of this. so any host that is in 192.168.10.x but not
> in the /28 will get relay denied.
>
> But more importantly: if there are no logs, then there are no
> problems ;-p
>
>
> >
> > I had this working but now I am getting relay denied errors and am
> > unsure where I goofed. Note: some of the local machines may
> send mail
> > with FROM = escapewire.com as they have that tld in their hostname.
> > Below is the output of postconf -n, please let me know if
> more info is
> > needed.
> >
>
>
>
> > Aside: I am also looking for a good "current" howto on setting up
> > postfix with encryption, imap, pop, and virtual users. I am open to
> > whatever packages are suggested, ie dovecot, etc... There
> will only be
> > about 30 vusers max, so I don't think(?) a db backend is needed.
> >
> > --- postconf -n ---
> > alias_database = hash:/etc/postfix/aliases alias_maps =
> > hash:/etc/postfix/aliases command_directory = /usr/sbin
> > config_directory = /etc/postfix daemon_directory =
> > /usr/libexec/postfix debug_peer_level = 2 html_directory =
> > /usr/share/doc/postfix-2.4.5-documentation/html
> > mailq_path = /usr/bin/mailq.postfix
> > manpage_directory = /usr/share/man
> > mydestination = $myhostname, localhost.$mydomain,
> localhost, $mydomain
> > myhostname = authorization.escapewire.com mynetworks =
> > 192.168.10.0/28, 127.0.0.0/8 newaliases_path =
> > /usr/bin/newaliases.postfix readme_directory =
> > /usr/share/doc/postfix-2.4.5-documentation/readme
> > relay_domains = $mydestination
> > sample_directory = /etc/postfix
> > sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop
> > unknown_local_recipient_reject_code = 550
> > ---
> >
> > Regards,
> > Andrew
> >
After correcting the mask (to /24) and sending a test from another local host, here is the log entry :)
Oct 10 11:53:52 authorization postfix/smtpd[5058]: connect from dev[192.168.10.98]
Oct 10 11:53:52 authorization postfix/smtpd[5058]: 56FE5B40070: client=dev[192.168.10.98]
Oct 10 11:53:52 authorization postfix/cleanup[5061]: 56FE5B40070: message-id=<20071010155352.4441CE06E7
dev.escapewire.com>
Oct 10 11:53:52 authorization postfix/qmgr[9008]: 56FE5B40070: from=<root
dev.escapewire.com>, size=544, nrcpt=1 (queue active)
Oct 10 11:53:52 authorization postfix/smtpd[5058]: disconnect from dev[192.168.10.98]
Oct 10 11:53:52 authorization postfix/smtp[5062]: 56FE5B40070: to=<along
authorization.escapewire.local>, relay=none, delay=0.03, delays=0.01/0.01/0/0, dsn=5.4.6, status=bounced (mail for authorization.escapewire.local loops back to myself)
Oct 10 11:53:52 authorization postfix/cleanup[5061]: 5F9E0B40075: message-id=<20071010155352.5F9E0B40075
authorization.escapewire.com>
Oct 10 11:53:52 authorization postfix/qmgr[9008]: 5F9E0B40075: from=<>, size=2554, nrcpt=1 (queue active)
Oct 10 11:53:52 authorization postfix/bounce[5064]: 56FE5B40070: sender non-delivery notification: 5F9E0B40075
Oct 10 11:53:52 authorization postfix/qmgr[9008]: 56FE5B40070: removed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]