|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Wietse Venema (wietse
porcupine.org)Date: Tue Mar 06 2001 - 18:19:44 CST
If your hostname is two fields, then the default mydomain value
becomes $myhostname.
If you specify "myorigin = $mydomain", then you have to specify
"mydomain = domainname" in your main.cf files.
Wietse
Ashley Gould:
> Hi,
>
> I'm confused as to running postfix on an nis/nfs lan. I have a test
> lan with three hosts:
>
> fukuoka.ashnet
> boletus.ashnet
> lactarius.ashnet
>
> I want fu to be the mail server for the lan and bo and lac to be null
> clients. All hosts are getting passwd and group files through nis.
> All user's home directories are nfs mounted to fukuoka:/home. My goal is
> for mail from any host to be forwarded/relayed to fukuoka, and for postfix
> on fu to deliver mail directly to each user's mailbox in their home
> directoy (~/Mail/incoming).
>
> My problem is when user ash sends mail to user norman on host
> boletus.ashnet, boletus relays the mail from ash
boletus.ashnet to fukuoka,
> but the mail is addressed to norman
boletus.ashnet, and fukuoka tries
> to forward it back to boletus (who does not recieve mail - null client).
>
> I have set myorigin = $mydomain on boletus and I am pushing
> mail.aliases through nis. Here are the details:
>
>
>
> These are the postfix settings on the null client:
>
> # from main.cf
> myhostname = boletus.ashnet
> myorigin = $mydomain
> mydestination =
> relayhost = fukuoka.ashnet
> alias_maps = hash:/etc/aliases, nis:mail.aliases
>
> # from master.cf
> #smtp inet n - y - - smtpd
> #local unix - n n - - local
>
>
> These are from the mail server:
>
> # main.cf
> myhostname = fukuoka.ashnet
> mydestination = $myhostname, localhost.$mydomain, $mydomain
> alias_maps = hash:/etc/aliases, nis:mail.aliases
> home_mailbox = Mail/incoming
>
>
> # The mail.aliases map from nis:
>
> fukuoka:/etc/postfix # ypcat -tk mail.aliases
> norman norman
fukuoka.ashnet
> therese therese
fukuoka.ashnet
> dominic dominic
fukuoka.ashnet
>
> ash ash
fukuoka.ashnet
>
>
>
> # The mail message:
> ash
boletus:~/ >echo here I am | mail norman
>
>
> # Mail logs on the client:
> Mar 6 14:35:28 boletus postfix/pickup[17502]: 8B21C5EB: uid=500 from=<ash>
> Mar 6 14:35:28 boletus postfix/cleanup[17511]: 8B21C5EB: message-id=<20010306223528.8B21C5EB
boletus.ashnet>
> Mar 6 14:35:28 boletus postfix/qmgr[17503]: 8B21C5EB: from=<ash
boletus.ashnet>, size=310, nrcpt=1 (queue active)
> Mar 6 14:35:29 boletus postfix/smtp[17515]: 8B21C5EB: to=<norman
boletus.ashnet>, relay=fukuoka.ashnet[172.16.0.2], delay=1, status=sent (250 Ok: queued as BAE9F4C0)
>
>
> # Mail logs on server:
>
> Mar 6 08:27:01 fukuoka postfix/smtpd[9038]: connect from boletus.ashnet[172.16.0.3]
> Mar 6 08:27:01 fukuoka postfix/smtpd[9038]: BAE9F4C0: client=boletus.ashnet[172.16.0.3]
> Mar 6 08:27:01 fukuoka postfix/cleanup[9040]: BAE9F4C0: message-id=<20010306223528.8B21C5EB
boletus.ashnet>
> Mar 6 08:27:01 fukuoka postfix/qmgr[9034]: BAE9F4C0: from=<ash
boletus.ashnet>, size=518, nrcpt=1 (queue active)
> Mar 6 08:27:01 fukuoka postfix/smtpd[9038]: disconnect from boletus.ashnet[172.16.0.3]
> Mar 6 08:27:02 fukuoka postfix/smtp[9044]: connect to boletus.ashnet[172.16.0.3]: Connection refused (port 25)
> Mar 6 08:27:02 fukuoka postfix/smtp[9044]: BAE9F4C0: to=<norman
boletus.ashnet>, relay=none, delay=1, status=deferred (connect to boletus.ashnet[172.16.0.3]: Connection refused)
>
>
>
>
>
> How do I make norman's "To: address be <norman
ashnet> or even
> <norman
fukuoka.ashnet> instead of <norman
boletus.ashnet>? Must I
> use recipient maps for each user? on each client? Surely there
> should be an easier way.
>
>
>
>
> --
>
> ashley
>
> -------------------------------------------------------------------
> SuSE Inc., Tel: +1-510-628-3380 (ext. 5064)
> 580 Second St., Suite 210 Fax: +1-510-835-3381
> Oakland CA 94607 Email: ashley
suse.com
> USA WWW: http://www.suse.com
> -------------------------------------------------------------------
>
>
> VirusScan 1.0 - "Windows found: Remove it? (Y/N)
>
>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]