Re: SPAM: Re: [SLE] SPAM: MailScanner & Postfix
- From: JDP <jdp1024@xxxxxxxxxxxxx>
- Date: Sun, 6 Aug 2006 12:34:08 -0700 (GMT-07:00)
Internet <-> Postfix-Gateway <-> internal MailserverYes, this is correct; Internet -> Postfix/MailScanner -> Internal MailServer
All Mails are running through the Postfix server either from outside or
inside. If you have three domains that postfix should accept mails for
and then relay to the internal server you should set up the domains as
relay domains.
/etc/postfix/main.cf:This is interesting; how to I tell Postfix to check the internal mailserver (Exchange) for address verification?
# internal trusted net that is allowed to relay
mynetworks = 192.168.1.0/24, 127.0.0.0/8
# domains that postfix should accept mails for from the internet
relay_domains = domain1.example.com, domain2.example.com,
domain3.example.com
# reject not listed recipients as invalid, otherwise mail would bounce later
relay_recipient_maps = hash:/etc/postfix/relay_recipients
# accept mails for relay_domains and relay for mynetworksThis is very promising. How does this work against an Exchange server?
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_destination
# send mail for special domains to the servers within:
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport:
# brackets to suppress mx lookup
domain1.example.com: relay:[192.168.1.13]
domain2.example.com: relay:[192.168.1.13]
domain2.example.com: relay:[192.168.1.13]
/path/to/file/with/valid/addresses:
address1@xxxxxxxxxxxxxxxxxxx OK
address2@xxxxxxxxxxxxxxxxxxx OK
address1@xxxxxxxxxxxxxxxxxxx OK
address2@xxxxxxxxxxxxxxxxxxx OK
address1@xxxxxxxxxxxxxxxxxxx OK
address2@xxxxxxxxxxxxxxxxxxx OK
....
This should give you a working installation without any whistles and
bells. If you don't have a list with valid addresses then you either
need to extract it (use an automated script later), use address
verification ( postfix asks the internal server if the address is
valid),
or, worst case, disable recipient validation. That would lead to
bounces, so I advise against it.Okay, when running postmap I get an error of,
If you want to get startet as fast as possible set "relay_recipient_maps
= ", that will disable the recipient validation.
All files with hash: in the beginning need to be converted to databases
with the postmap command after every change:
postmap /etc/postfix/transport
postmap /etc/postfix/relay_recipients
postmap: warning: /etc/postfix/transport, line 274: record is in "key: value" format; is this an alias file?
Should I drop the colon after the doamin name?
Thank you,
~James
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx
- Follow-Ups:
- Re: SPAM: Re: [SLE] SPAM: MailScanner & Postfix
- From: Sandy Drobic
- Re: SPAM: Re: [SLE] SPAM: MailScanner & Postfix
- From: Per Jessen
- Re: SPAM: Re: [SLE] SPAM: MailScanner & Postfix
- Prev by Date: [SLE] Re: MSOE
- Next by Date: Re: SPAM: Re: [SLE] SPAM: MailScanner & Postfix
- Previous by thread: Re: SPAM: Re: [SLE] SPAM: MailScanner & Postfix
- Next by thread: Re: SPAM: Re: [SLE] SPAM: MailScanner & Postfix
- Index(es):
Relevant Pages
|