OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Tomasz Papszun (tomek-postfix_at_lodz.tpsa.pl)
Date: Thu Jan 02 2003 - 10:23:25 CST

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

    On Thu, 02 Jan 2003 at 16:07:12 -0000, Andy Crichton wrote:
    > Hi,
    > I have a machine in a private network which relays mail via a mail
    > gateway. I set myorigin to $mydomain to avoid any problems with access
    > control measures on remote sites however all mail to local users now gets
    > mailed to the mail gateway eg:
    >
    > mail-gw.fqdn.com -------- no-dns.fqdn.com
    >
    > on "no-dns" if I
    > echo "hello" | mail root
    >
    > the mail goes to rootfqdn.com
    >
    > This appears to be the logical consequence of setting the origin.
    > My question is:
    >
    > Q/ How do I get mail to users where there is no host specified to be
    > delivered to the local machine whilst having $myorigin as a valid
    > domain/host name.
    >

    You probably should use "mydestination" parameter.
    E.g.:

    mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost

    > postconf -n:
    > command_directory = /usr/sbin
    > config_directory = /etc/postfix
    > daemon_directory = /usr/libexec/postfix
    > debug_peer_level = 2
    > mail_owner = postfix
    > mailq_path = /usr/bin/mailq
    > manpage_directory = /usr/local/man
    > mydomain = FQDN.TLD
    > myhostname = NON_DNS_HOST.FQDN.TLD
    > mynetworks_style = host
    > myorigin = $mydomain
    > newaliases_path = /usr/bin/newaliases
    > queue_directory = /var/spool/postfix
    > readme_directory = no
    > relayhost = 192.9.200.99
    > sample_directory = /etc/postfix
    > sendmail_path = /usr/lib/sendmail
    > setgid_group = postdrop
    >
    > Many thanks
    >
    > Andy Crichton
    >
    >
    > __________________________

    > This email and any files transmitted with it are confidential and
    intended solely for the use of the individual or entity to whom they are
    addressed. The contents are confidential and may be privileged.
    > Any views or opinions expressed are those of the sender and may not
    reflect the views or opinions of the company and the company accepts no
    liability in respect thereof.
    > If you have received this email in error please notify
    postmasterabibuildingdata.com immediately.
    >
    > ________________________________________________________________________
    > This e-mail has been scanned for all viruses by Star Internet. The
    > service is powered by MessageLabs. For more information on a proactive
    > anti-virus service working around the clock, around the globe, visit:
    > http://www.star.net.uk
    > ________________________________________________________________________

    Oh, come on... ;-)

    -- 
     Tomasz Papszun   SysAdm  TP S.A. Lodz, Poland  | And it's only
     tomeklodz.tpsa.pl   http://www.lodz.tpsa.pl/   | ones and zeros.