OSEC

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 (wietseporcupine.org)
Date: Tue Mar 06 2001 - 18:19:44 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    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 ashboletus.ashnet to fukuoka,
    > but the mail is addressed to normanboletus.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 normanfukuoka.ashnet
    > therese theresefukuoka.ashnet
    > dominic dominicfukuoka.ashnet
    >
    > ash ashfukuoka.ashnet
    >
    >
    >
    > # The mail message:
    > ashboletus:~/ >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.8B21C5EBboletus.ashnet>
    > Mar 6 14:35:28 boletus postfix/qmgr[17503]: 8B21C5EB: from=<ashboletus.ashnet>, size=310, nrcpt=1 (queue active)
    > Mar 6 14:35:29 boletus postfix/smtp[17515]: 8B21C5EB: to=<normanboletus.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.8B21C5EBboletus.ashnet>
    > Mar 6 08:27:01 fukuoka postfix/qmgr[9034]: BAE9F4C0: from=<ashboletus.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=<normanboletus.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 <normanashnet> or even
    > <normanfukuoka.ashnet> instead of <normanboletus.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: ashleysuse.com
    > USA WWW: http://www.suse.com
    > -------------------------------------------------------------------
    >
    >
    > VirusScan 1.0 - "Windows found: Remove it? (Y/N)
    >
    >
    >