sendmail + ppp (was Re: sendmail)
I.Ioannou
roryt at hol.gr
Fri Jun 19 03:53:56 EEST 1998
On 17-Jun-98 I wrote:
> An balw DS tipota, DMhol.gr kai Dj to dynamic onoma toy ppp ola einai ok,
> alla pws ginetai na to kanw ayto aytomata ?
Loipoon, brika mia lisi, kai an den yparxei allh idea tha minw se aythn. Elpizw
na mhn anakalypsa ton troxo alla me barbaro tropo.
To olo thema ipenthimizw, einai oti den mporo na xrisimopoihsw to sendmail gia
na steilw mail apo to mixanima mou (px me thn aplh entolh mail) giati den exw
registered domain name (ppp) kai ta alla sendmail to kanoun reject.
LYSH :
Fiaxnw xrhsth roryt apo opou tha stelnw ta mail mou
Bazw sto /etc/sendmail.cf :
1) DMhol.gr - ayto tha epireasei to From se sindiasmo me ton xristi na dosei thn
pragmatikh mou e-mail.
2) DS tipota h an protimate ton smtp sas,
3) Djroryt.hol.gr (opou roryt.hol.gr unregistered name toy mixanimatos mou).
4) Kanw cp /etc/sendmail.cf /etc/sendmail.orig.
5) kai bazw sto ip-up (.xisp-up gia osous exoun xisp) to parakatw script :
----- script gia na epireazei to sendmail.cf sto ip-up -----------
#!/bin/sh
IPADDR=`ifconfig ppp0 | grep addr: | \
awk -F : '{print $2}' | awk '{print $1}'`
PPPNAME=`nslookup $IPADDR | grep Name: | \
awk -F : '{print $2}' | awk '{print $1}'`
sed s/roryt.hol.gr/$PPPNAME/g /etc/sendmail.orig > /etc/sendmail.cf
killall -1 sendmail
-------------------------------------------
Dhladi dinw sto sendmail to mono registered domain name pou exw : to dynamic
toy ppp.
6) To mono pou menei sto ip-down (.xisp-down) na balw kati san ayto :
cp /etc/sendmail.orig /etc/sendmail.cf
killa -1 sendmail
Kai epeksa :-)
I.Ioannou <roryt at hol.gr>
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list