The Monday 2004-06-14 at 21:13 +0200, Sjoerd Hiemstra wrote:
According to man mail, a command like 'set smtp=smtp.your_isp.com' should do it.
That would have to go into the $HOME/.mailrc file.
Ah - that appears to be the missing link! I can have 'mail' send messages now. Thanks!
Welcome!
Just a note: The program "mail" included in recent versions of SuSE (since perhaps 8.1 or 8.2) is in fact, "nail" - as can be seen from "man mail". This new mail program is way more powerfull than the old, standard, "mail" program.
(Running 8.2 here) sh: ~> file /bin/mail /bin/mail: symbolic link to ../usr/bin/nail sh: ~> file /usr/bin/Mail /usr/bin/Mail: symbolic link to nail sh: ~> file /usr/bin/mail /usr/bin/mail: symbolic link to nail sh: ~> file /usr/bin/mailx /usr/bin/mailx: symbolic link to nail sh: ~> rpm -qf /usr/bin/nail mailx-10.3-31
Everything is just the same, eh?
Yes, now they are. Previously they were different, and I had to download and compile "nail" myself to get the extra features it has compared to the "mail" that came with the system.
Uhm, I just never took the effort to install the local mail system and find out how to set more than one provider and that sort of things. With wvdial and wvdial.conf it's very clear and easy, so I'd rather stick with that.
Getting mail from different providers (accounts) is very easy, with almost anything. I use fetchmail. Sending from different accounts is more dificult. Programs like "mozilla" have the possibility to send trhough different smtp servers, acording to the identity used to write the email. Tuning the local smtp machine to do the same is more difficult: it is far easier to simply use sendmail or postfix to send directly to each destination - with a problem, because recently, as a side efect of spammers and viruses, more and more servers are rejecting mail sent from dynamic addresses. :-/ However, now postfix seems to admit configuration of different smtp servers to relay mail to, according to the from address - I still have not tried that: and the default postfix on suse 8.2 can not do that. -- Cheers, Carlos Robinson