OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: RE: Postfix vs. Exchange, round 3
From: Malcolm Tester (MTestercambric.com)
Date: Fri Sep 29 2000 - 18:19:13 CDT


-> -----Original Message-----
-> From: Ralf Hildebrandt [mailto:news-list.postfix.usersinnominate.de]
-> Sent: Friday, September 29, 2000 4:23 PM
-> To: postfix-userspostfix.org
-> Subject: Re: Postfix vs. Exchange, round 3
->
-> On 30 Sep 2000 00:10:09 +0200, Malcolm Tester
-> <MTestercambric.com> wrote:
-> >
-> >Ok, so I change mydestination = $myhostname,
-> localhost.$mydomain and reload.
-> >Mail starts bouncing for outgoing because of recipient
-> address. So then I
-> >add everything that _used_ to be in mydestination to
-> relay_hosts, and
->
-> relay_hosts ??
->
-> Why don't you use $mynetworks?

Err, not relay_hosts. sorry. I meant relay_domains.

Ok, I found one problem. For some strange reason (probably a lack of sleep
at the time), I had mynetworks setup wrong. i deleted it, let it use the
defaults, deleted relay_domains, and it stopped rejecting outgoing mail. So
score there!

However, it still loops mail between the relayhost and itself for incoming
mail, without relay_domains or mydestination having the $mydomain etc set.
Why would it do that then?

postconf -n now says:
{rootamazon:1304} ../sbin/postconf -n
alias_database = dbm:/opt/postfix/etc/aliases
alias_maps = dbm:/opt/postfix/etc/aliases
command_directory = /opt/postfix/sbin
daemon_directory = /opt/postfix/libexec
debug_peer_level = 2
default_destination_concurrency_limit = 10
empty_address_recipient = MAILER-DAEMON
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
masquerade_domains = cambric.com
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain
myhostname = internal.cambric.com
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains
sun_mailtool_compatibility = yes

maillog output:
Sep 29 16:44:07 internal postfix/smtpd[18105]: connect from
firewall[192.168.1.36]
Sep 29 16:44:07 internal postfix/smtpd[18105]: B4DC6F0A13:
client=firewall[192.168.1.36]
Sep 29 16:44:07 internal postfix/cleanup[18107]: B4DC6F0A13:
message-id=<CAE0A17F1713D311A44500105A16C90B653396exchangeserver.cambric.co
m>
Sep 29 16:44:07 internal postfix/smtpd[18105]: disconnect from
firewall[192.168.1.36]
Sep 29 16:44:07 internal postfix/qmgr[18103]: B4DC6F0A13:
from=<MTestercambric.com>, size=2236 (queue active)
Sep 29 16:44:08 internal postfix/smtpd[18105]: connect from
firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/smtp[18111]: B4DC6F0A13:
to=<mtestermailhost.cambric.com>, relay=192.168.1.36[192.168.1.36],
delay=1, status=sent (250 Ok: queued as 5497818FA6)
Sep 29 16:44:08 internal postfix/smtpd[18105]: 18026F0A13:
client=firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/cleanup[18107]: 18026F0A13:
message-id=<CAE0A17F1713D311A44500105A16C90B653396exchangeserver.cambric.co
m>
Sep 29 16:44:08 internal postfix/smtpd[18105]: disconnect from
firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/qmgr[18103]: 18026F0A13:
from=<MTestercambric.com>, size=2621 (queue active)
Sep 29 16:44:08 internal postfix/smtpd[18105]: connect from
firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/smtpd[18105]: 449D2F0A14:
client=firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/smtp[18111]: 18026F0A13:
to=<mtestermailhost.cambric.com>, relay=192.168.1.36[192.168.1.36],
delay=0, status=sent (250 Ok: queued as 8A03618FA6)
Sep 29 16:44:08 internal postfix/cleanup[18107]: 449D2F0A14:
message-id=<CAE0A17F1713D311A44500105A16C90B653396exchangeserver.cambric.co
m>
Sep 29 16:44:08 internal postfix/smtpd[18105]: disconnect from
firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/qmgr[18103]: 449D2F0A14:
from=<MTestercambric.com>, size=3006 (queue active)
Sep 29 16:44:08 internal postfix/smtp[18111]: 449D2F0A14:
to=<mtestermailhost.cambric.com>, relay=192.168.1.36[192.168.1.36],
delay=0, status=sent (250 Ok: queued as B47B518FA6)
Sep 29 16:44:08 internal postfix/smtpd[18105]: connect from
firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/smtpd[18105]: 718D6F0A13:
client=firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/cleanup[18107]: 718D6F0A13:
message-id=<CAE0A17F1713D311A44500105A16C90B653396exchangeserver.cambric.co
m>
Sep 29 16:44:08 internal postfix/smtpd[18105]: disconnect from
firewall[192.168.1.36]
Sep 29 16:44:08 internal postfix/qmgr[18103]: 718D6F0A13:
from=<MTestercambric.com>, size=3391 (queue active)
and the list goes on until too many hops and it bounces.

Malcolm