sendmail + ppp (was Re: sendmail)
Christos Cheretakis
xalkina at otenet.gr
Sat Jun 20 02:02:34 EEST 1998
I.Ioannou wrote:
>
> 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).
'H, an de ues n' allazeis synexvs to sendmail.cf, bazeis
Fj/etc/sendmail.cj, kai sto scriptaki gia to ip-up
> 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
echo $PPPNAME > /etc/sendmail.cj
> killall -1 sendmail
>
> -------------------------------------------
>
> 6) To mono pou menei sto ip-down (.xisp-down) na balw kati san ayto :
Edv apla sbhneis to /etc/sendmail.cj, 'h kaneis cat < /dev/null
>/etc/sendmail.cj
kai jana kill -1 to sendmail
>
> Kai epeksa :-)
>
> I.Ioannou ?roryt at hol.gr?
Xrhstos
--
Koimhsoy, Persefonh
Sthn agkalia ths ghs
Stoy kosmoy to mpalkoni
Pote mhn janabgeis
--
====================================================================
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