[SuSE Linux] Sendmail and Fetchmail
Hi, I can dialup to my ISP using diald, and browse the web using Lynx. Now I would like to get sendmail and fetchmail going, but am a bit scared. My domain is hosted with my ISP as a virtual domain. There are a few others also receiving mail in this domain, but I do not want their mail, and would like to send from my machine as well. Sendmail has to act as a collector and sender for a few users on my internal LAN. Will it cause problems if I name my own machine the same as my domain hosted with the ISP? Is it possible for sendmail not to call diald, but to wait till a dialup connection is made and only then sending mail? It does not seem as if fetchmail can be setup with YaST. Are there any examples available somewhere? Thanks Nico - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
info@edoc.co.za wrote:
Hi,
I can dialup to my ISP using diald, and browse the web using Lynx.
Now I would like to get sendmail and fetchmail going, but am a bit scared.
My domain is hosted with my ISP as a virtual domain. There are a few others also receiving mail in this domain, but I do not want their mail, and would like to send from my machine as well. Sendmail has to act as a collector and sender for a few users on my internal LAN.
Will it cause problems if I name my own machine the same as my domain hosted with the ISP?
I only have a rudimentary sendmail setup going but this is what I have seen: I don't think it makes much difference. The best way to find out is to set it up that way, then go into /var/mqueue and look at in the SMTP mail headers. You will see that you will be called root@localhost somewhere in there, to distinquish you from root@edoc.co.za. So even if you called your hostname edoc.co.za, the real edoc.co.za will sort you out. Try it and see. If it gets too confusing, just change your hostname to something else, like info.
Is it possible for sendmail not to call diald, but to wait till a dialup connection is made and only then sending mail?
In yast there is a line for sendmail options, change it to -q -v and remove the -30m option. Also, set sendmail expensive = yes. Then when you are online, as root , issue sendmail -q -v.
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Thanks for the answer Zentara (And the other answers as well!) The followup question: Is it possible to launch automatically sendmail - q as root once a successfull connection has been made by diald? That would be power! Maybe this could become a feature in the next SuSE release for dial-up users? Nico
info@edoc.co.za wrote:
Hi,
I can dialup to my ISP using diald, and browse the web using Lynx.
Now I would like to get sendmail and fetchmail going, but am a bit scared.
My domain is hosted with my ISP as a virtual domain. There are a few others also receiving mail in this domain, but I do not want their mail, and would like to send from my machine as well. Sendmail has to act as a collector and sender for a few users on my internal LAN.
Will it cause problems if I name my own machine the same as my domain hosted with the ISP?
I only have a rudimentary sendmail setup going but this is what I have seen: I don't think it makes much difference. The best way to find out is to set it up that way, then go into /var/mqueue and look at in the SMTP mail headers. You will see that you will be called root@localhost somewhere in there, to distinquish you from root@edoc.co.za. So even if you called your hostname edoc.co.za, the real edoc.co.za will sort you out. Try it and see. If it gets too confusing, just change your hostname to something else, like info.
Is it possible for sendmail not to call diald, but to wait till a dialup connection is made and only then sending mail?
In yast there is a line for sendmail options, change it to -q -v and remove the -30m option. Also, set sendmail expensive = yes. Then when you are online, as root , issue sendmail -q -v.
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Thu, 12 Nov 1998 info@edoc.co.za wrote:
The followup question: Is it possible to launch automatically sendmail - q as root once a successfull connection has been made by diald?
That would be power!
Maybe this could become a feature in the next SuSE release for dial-up users?
Assuming you're connecting with PPP, just put it in /etc/ppp/ip-up and it will be executed as soon as pppd goes online. e.g. from my ip-up: /usr/sbin/ntpdate -s -t2 ntp.demon.co.uk \ ntp1.demon.co.uk \ ntp2.demon.co.uk & /usr/sbin/sendmail -q & /usr/lib/news/bin/send-nntp news.demon.co.uk & /usr/lib/news/bin/slurp news.demon.co.uk & Phil -- Philip Stokes Email: phil@stokes.demon.co.uk Fax: +44 (0)870 164 1242 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
info@edoc.co.za wrote:
Thanks for the answer Zentara (And the other answers as well!)
The followup question: Is it possible to launch automatically sendmail - q as root once a successfull connection has been made by diald?
That would be power!
Maybe this could become a feature in the next SuSE release for dial-up users?
Nico
look into the scripts. I do not know what scripts are used by diald, but you will find a command that *establishes* the link and add "sendmail -q" right after that, or better do a "wait 10s", to make sure the link *is* established at that time. i.e. a "standard" ppp-up file: localip=0.0.0.0 remoteip= device=/dev/modem pppflags="38400 modem debug defaultroute" /usr/sbin/pppd lock \ connect \ '/usr/sbin/chat -v -f /etc/ppp/ppp.chat' \ $device $pppflags $localip:$remoteip \ lcp-echo-interval 20 \ lcp-echo-failure 5 # add here wait 10s sendmail -q fetchmail -f /etc/fetchmailrc # this fetches an sends your mal .... Juergen -- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| /\\ /__/ / _ \/ // /\ \/ / ==========================================_\_v __/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Wed, 11 Nov 1998 info@edoc.co.za wrote:
Will it cause problems if I name my own machine the same as my domain hosted with the ISP?
You don't have to unless you're really wanting to do it this way, it's just as easier (easier?) to just set sendmail to masquerade your domain as your isp and create an appropriate user account on local machine. You can either use YaST to masquerade ( it'll adda line about domain maquerading to your sendmail.cf file in etc.) or build your own .mc file and generate your own .cf file to be used by sendmail. Check out the docs. It's pretty easy. If you know sendmail it's not difficult to add the right lines when you use m4 to build a .cf, if you don't, YaST, is the way to go, as it'll take care of it for you with no fuss, no muss.
Is it possible for sendmail not to call diald, but to wait till a dialup connection is made and only then sending mail?
You can set these options in YaST, I believe, if you use YaST to modify how sendmail runs, by setting the arguments using YaST's system configuration section. This will modify /etc/rc.config. It's in the SENDMAIL_ARGS line I believe. I might be wrong about this ( I don't use YaST for some things and have turned sendmail configuration off). If I'm mistaken I'm sure the right people, Lenz et al, will set me straight.
It does not seem as if fetchmail can be setup with YaST. Are there any examples available somewhere?
Fetchmail can't be set up with YaST. But from what I remember fetchmail comes with a sample script. There is also a sample script in the S.u.S.E. support database, that talks abit about sendmail, fetchmail, and the procmail package. a simple fetchmailrc might look like: server < put your isp here, e.g. , pop.linuxiscool.com > proto < e.g. pop3> user < your login name or whatever > pass < password > flush < delete the mail I download> mda < mail delivery agent, e.g. I use procmail, for instance. > Note: recent versions of fetchmail also have an X configurator or whatever, that will generate the right .fetchmailrc in $HOME. For other options to fetchmail besides what I listed try man fetchmail or read the FAQ that comes with it. It really is one of the easiest programs on earth to use IMHO. I also recommend reading that book that ships with 5.3 ( for seeing what YaST will do for you, re sendmail ) and/or checking out S.u.S.E.'s MASSIVE suport database and just use keywords to search through it. Most of your questions ( and then some ) are in there and in some cases are quite VERBOSE, and much MORE verbose and elucidating than the S.u.S.E. book is or sometimes even most mailing lists. -M - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (5)
-
brauki@cityweb.de
-
hekate@intergate.bc.ca
-
info@edoc.co.za
-
phil@stokes.demon.co.uk
-
zentara@mindspring.com