Re: lug-bg: Sendmail config problem
- Subject: Re: lug-bg: Sendmail config problem
- From: vlk@xxxxxxxxxxxxxxxxx (Vesselin Kolev)
- Date: Fri, 12 Apr 2002 14:01:37 +0300
Eto otgovra na problema ti....
Shte izlozha vsichko stypka po stypka za da mozhesh da go
presyzdadesh dokato go chetesh...
Parvo da priemem, che imeto na domaina, za kogoto shte obsluzhvash
vhodiashtia mail prez bastionnia host e domain.bogus i v source na
zonata, koito obsluzhva tozi domain tvoia bastionen host e s nai-visok
prioritet v MX zapisite! Inache niama da go byde tova deto si go namislil.
Ako dotuk vsichko e v red.. prodalzhavame sas stypka nomer 1!
Predi vsichko traibva v reshenieto na tazi zadacha da se zapochne otzad
napred. T.e. pyrvo traibva da proverish dali vsichko e nared pri servera v
systava na VPN za koito iskash da translirash vhodiastia poshtenski trafic
prez bastionnia host. Predi vsichko traibva da rezberesh za koi domain ili
domini e nastroen da priema elektronna poshta.
Tova mozhesh da proverish ako popitash administratora na tozi server ili
se pomychish sam da razberesh tova tova. Ideiata e, che ako ti znaesh
za koi domeini ili imena na mashini priema poshta tozi server, ti mozhesh
da remapnesh (preadresirash) vhodiashtia za nego trafik prez bastionnia
host kym imeto na mashinata, koeto se poddyrzha ot mail-servera. (Za da
imash analogia sas Sendmail shte ti kazha, che tove e vse edno da kazhesh,
che tvoia server priema mail za localhost.localdomain vyv faila
/etc/mail/local-host-names. Ako napravish taka, sam razbirash, che vsiako
pismo, nasocheno kym tvoia server i adresirano do user@localhost.localdomain
shte byde prieto za lokalna dostavka).
I taka... mozhesh primerno da se vyrzhesh s telnet na 25 port na mashinata
i da ia pitash za koi host priema poshta i za koi ne. Za iliushtracia ti
davam otgovora, koito bi poluchil ako mashinata priema elektronna poshta za
hosta vpn.localdomain
[root@lcpe2digsys AG]# telnet e-lib.lcpe.uni-sofia.bg 25
Trying 62.44.103.111...
Connected to e-lib.lcpe.uni-sofia.bg (62.44.103.111).
Escape character is '^]'.
220 e-lib.lcpe.uni-sofia.bg ESMTP Sendmail 8.11.6/8.11.6; Fri, 12 Apr 2002
13:50:03 +0300
helo test
250 e-lib.lcpe.uni-sofia.bg Hello lcpe2digsys.lcpe.uni-sofia.bg
[62.44.103.4], pleased to meet you
mail from: vlk@xxxxxxxxxxxxxxxxx
250 2.1.0 vlk@xxxxxxxxxxxxxxxxx... Sender ok
rcpt to: root@vpn.localdomain
250 2.1.5 root@vpn.localdomain... Recipient ok
data
354 Enter mail, end with "." on a line by itself
test message
.
250 2.0.0 g3CAoDc11175 Message accepted for delivery
quit
221 2.0.0 e-lib.lcpe.uni-sofia.bg closing connection
Connection closed by foreign host.
[root@lcpe2digsys AG]#
Zabelezhi reda 250 2.1.5 root@vpn.localdomain... Recipient ok.
Tova znachi, che mashinata priema zaiavki za tozi domain...
Znachi, v rezume, parvo nauchi za koe ime na mshina ide rech i
dali mail-servera varhu neia priema mailove za tozi domain...
Sled tova pravim slednata operacia. Otivash v /etc/mail/virtusertable
i postaviash tam slednia red:
@domain.bogus %1@vpn.localdomain
Posle izpylniavash :
makemap hash virtusertable.db < virtusertable
Sledvashta stypka e da kazhesh koi e SMTP hosta za domaina
vpn.localhost. Tova shte ti se nalozhi za da ne pravish tova chrez
DNS zapisi za VPN zoni i dr. neshta, koito samo uslozhniavat neshtata
i vodiat do natrupvane na greshki... Otivash v /etc/mail/mailertable i
zapisvash na otdelen red:
vpn.localdomain esmtp:vpn.localdomain
Posle izpylniavash :
makemap hash mailertable.db < mailertable
I si gotov.. Sega se opitai da pratish niakoi mail do potrebitel
na obsluzhvania ot teb domain prez tvoia bastionen host i shte vidish
che shte otide...
Ako imash oshte problemi mi se obadi... Reshava sam i po-tezhki
problemi.. No vse pak dano se reshi sega i zavinagi:)))
I relay-domains v sluchaia mai ne pomaga:))
Pozdravi
Vesselin
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|