On Tue, May 30, 2000 at 10:35:29AM -0400, Hardy Merrill wrote:
> Newbie POP question - I've configured my Redhat 6.1 system at home
cool :)
> to use Mutt 1.2 *with* POP enabled. I have the POP options popluated
> with the proper values for my ISP, and the "G" function to
> retrieve mail from my ISP works fine, but how do I send mail?
It's quite easy. I suppose you have a dialup workstation, so you have to use a trick
in order to use a local mail server.
First, you have to set your "smart host" in /etc/sendmail.cf
So, put a line of this kind (in /etc/sendmail.cf) :
# "Smart" relay host (may be null)
DSsmtp.worldonline.fr
But that's not all. As you have a dialup workstation, each time you connect to your
ISP, your IP address will change.
So, you have to tell Sendmail you official domain name. In order to give a correct
domain name, you have to know your ip address.
The trick is that each time you connect to your ISP, your dialing deamon will restart
sendmail with a correct domain name.
You can do the following stuff :
- copy your /etc/sendmail.cf in /etc/sendmail.cf.base
- Then edit you /etc/ppp/ip-up script and insert at the end :
---
HOST=`/usr/local/bin/gethost $4`
sed s/'#Dj.*'/"Dj$HOST"/ /etc/sendmail.cf.base >/etc/sendmail.cf
kill -1 `head -1 /var/run/sendmail.pid`
/usr/sbin/sendmail -q&
---
which aim is to restart sendmail with the correct properties.
- The final thing is to install a program (gethost for example) which will convert
your IP adress to a domain name.
That's all folks :)
--
Init64 - http://www.init64.com
Voice messages & Fax : 1(303) 593-8115