sendmail re-writing rules 8.13.x & uucp (was Re: FreeBSD & Perl)

I.Ioannou roryt at argeas.cs-net.gr
Thu Feb 24 11:55:32 EET 2005


On Thu, Feb 24, 2005 at 10:09:56AM +0200, Christos Ricudis wrote:
> D.A.Glynos wrote:
> >
> >ws paradeigma ta pkg-tools 8a se valw na aposth8hseis *OLA* ta re-writing
> >rules tou sendmail. Egina katanohtos?
> > 
> >
> 
> KYRIA! KYRIA! NA PW? NA PW?


Nai nai, Christo, na peis, giati mou exei spasei ta neyra.
Prosfata ebala sendmail 8.13.2 se ena palio site pou htane 
uucp getaway kai mou ta ekane mouti.

Loipon (fixed fonts parakalw) :

'lan' <---------------> 'hub' -> internet
                          |
                          |
                          +===> diafora uucp sites me modem

'lan' kai 'hub' einai dyo Linux machines sto LAN
pou milane me sendmail me smtp (paliotera milagane kai 
me uucp, kai thelw na to diatirisw, mpas kai...). 
To hub ektos apo Internet getaway exei kai merika modems
kai mesw aytwn milaei me uucp sites. Ena apo ayta einai 
me thn ATT , to attmail. Thelw oso mporw to  gegonos 
oti ena transfer einai smtp h uucp h SMS h fax h telex h
den kserw gw, na einai transparent apo to 'lan' kai na to 
apofasizw sto 'hub'. Toi idaniko einai to lan na stelnei
se smtp dieythineis (h aliases tou hub, estw kati san 
kapoios!uucp at hub.mydomain.com) kai na mhn skotizetai gia 
ta pereterw.

Ta dyo sendmail einai 8.13.x. Kai sta dyo sendmail.mc exw 
sto katw meros :

MAILER(uucp)dnl 

Sto 'lan' exw epishs:
define(`SMART_HOST', `hub')dnl
define(`UUCP_RELAY', `hub')dnl


Sto HUB exw:

define(`MAIL_HUB',`smtp:lan')dnl  gia na stelnei ta panta sto lan
CUattmail
CUlan
CUhub
FEATURE(`mailertable')dnl

kai diafora masquerade rules pou nomizw einai asxeta.

Sto mailertable fysika exw pragmata opws :

attmail.mydomain.com          uucp:attmail
theother.mydomain.com	      uucp:theother

Kai sto CW (local-host-names) exw diafora pragmata 
kai anamesa tous kai :

hub.UUCP

Kai fysika to uucp systima einai rithmismeno kai pezei apsoga.

Mexri edw kala. Me ta palia sendmail (<= 9.x) auto to setup douleue. 
To 'lan' estelne se mia smtp dieythinsi attmail!uucp at hub.mydomain.com
auto pigene sto hub , to hub to metafraze se attmail!uucp kai to estelne. 
Eperna kati apo thn attmail, to rmail to ekane attmail!uucp, to hub to 
metafraze se attmail!uucp at hub.mydomain.com kai to estelne sto lan. 
Mporousa na kanw reply kai tha pigene sto attmail!uucp at hub.mydomain.com
kai o kylos sinexize. Kai fysika panta mporousa na stelnw kateythian
(uucp rules epitrepontws) me hub!attmail!uucp, alla ayto den me poliniazei.

TWRA:

Stelnw apo to lan sto hub ok, gia thn wra den parousiazete problima ekei.
Otan omws pernw, to rmail to kanei attmail!uucp to pernei to MSP tou hub, 
paei na to steilei sto MTA tou hub afou to kanei attmail!uucp at hub.mydomain.com.

!!!O malakas o MTA tou hub to kanei reject san 'domain does not exist' !!!!!!!

To idio an to piesw to MSP na kanei rewrite san attmail!uucp at mydomain.com.
O MTA moularwnei, kai arneitai na to dextei. Fysika, kai mias kai to hub
dexetai mails kai apo to Internet den mporw na epitrepsw unknown domains.

Telika to mono pou brika na  pezei einai na balw sto submit.mc tou MSP:
FEATURE(`uucpdomain')dnl

kai mesa sto uudomain

attmail!uucp        mydomain.com

opote o MSP kanei rewrite to attmail!uucp se uucp at mydomain.com
opote o MTA to dexete kai to proothei. MA ETSI DEN MPORW NA KANW REPLY !!!!! 
Kai fysika den exw ena mono uucp site, opote na mhn peirazei.

Protaseis pls

roryt




More information about the Linux-greek-users mailing list