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 with LAN and Dialup
From: Ralf Hildebrandt (news-list.postfix.usersinnominate.de)
Date: Fri Jun 09 2000 - 06:41:12 CDT


On 9 Jun 2000 12:01:50 +0200, Sven Eisenhauer <sven.eisenhauerdanet.de> wrote:

>And this my problem: One client has an email address like user1gmx.net, the
>other has user2hotmail.com. So if I try to send the mails via the SMTP server
>of my ISP (mail.anydomain.de), he thinks I am a bad relayer and rejects my
>mails of course.

Shouldn't this mailserver make relay decisions based on IP?

>I have one email address with my ISP-account useranydomain.de.
>Can i do something with address-masquerading to send with this adress over
>mail.anydomain.de, but the recipient of the mail sees the original address of
>the sender (e. g. user1gmx.net).

---/etc/postfix/canonical-recipients:
gmxusergmx.de userA
tonlineusert-online.de userB

if recipient is a local User, we avoid using the provider

---/etc/postfix/canonical-sender
userAmyhostname.mydomain gmxusergmx.de
userBmyhostname.mydomain tonlineusert-online.de

replace local addresses by correct addresses for the provider

---/etc/postfix/transport
myhostname.mydomain local:

local mail is supposed to be delivered locally

soft_bounce = yes
Enable soft bounces in case one of the providers refuses badly addressed
email.

-- 
Ralf.Hildebrandtinnominate.de
                                                          innominate AG
                                                      networking people
fon: +49.30.308806-44 fax: -77  web: http://innominate.de  pgp: /pgp/rh