[linux] Postfix - M$ Exchange - predavanie mailou...

Kocur kocur na zsvak.sk
Středa Říjen 16 10:49:59 CEST 2002


dik za radu....

idem skusat....
aj ked by som najradcej zrusil cely exchange.....

----- Original Message -----
From: "Pogac Daniel" <dano na tatrasoft.sk>
To: <linux na lists.linux.sk>
Sent: Wednesday, October 16, 2002 10:07 AM
Subject: RE: [linux] Postfix - M$ Exchange - predavanie mailou...


How to set up Postfix on the firewall machine so that it relays mail for
domain.com to a gateway machine on the inside, and so that it refuses mail
for *.domain.com? The problem is that the default relay_domains mail
relaying restriction allows mail to *.domain.com when you specify
domain.com.


Specify a transport table to route mail for domain.com to the inside
machine.
Specify explicit settings for smtpd_recipient_restrictions and for
mynetworks that allow local systems to send mail anywhere, and that allow
remote systems to send mail only to user na domain.com.


/etc/postfix/main.cf:
    myorigin = domain.com
    mydestination = domain.com
    transport_maps = hash:/etc/postfix/transport
    mynetworks = 12.34.56.0/24
    smtpd_recipient_restrictions = permit_mynetworks
reject_unauth_destination
    local_transport = error:local mail delivery is disabled on this machine

/etc/postfix/transport:
    domain.com   smtp:inside-gateway.domain.com   (forwards user na domain)

/etc/postfix/master.cf:
    Comment out the local delivery agent

Specify dbm instead of hash if your system uses dbm files instead of db. To
find out what map types Postfix supports, use the command postconf -m.


Execute the command postmap /etc/postfix/transport whenever you change the
transport table.

Execute the command postfix reload after a configuration change.

Daniel Pogač
TatraSoft Group s.r.o.
Sibírska 4
831 02 Bratislava
tel: +421-2-55574033
fax: +421-2-55566385
cell: +421-904-430036
e-mail: dano na tatrasoft.sk
www: www.tatrasoft.sk




_______________________________________________
http://lists.linux.sk/listinfo/linux
http://search.lists.linux.sk





Další informace o konferenci linux