Stroller wrote:
On Oct 26, 2005, at 12:27 pm, John Jolet wrote:
...
So what I'm looking for is a program that acts like 'sendmail' (so
that I can send email from mutt), and when it gets mail to send it
stores it in a queue....
Some kind of command like:
$ sudo dump_all_mail_to smtp.wherever.i.am.net
Does such a program exist? Really I'm just looking for something
like ssmtp, but with a queue.
most mtas (postfix, sendmail, and exim for sure) have multiple ways
of being called. One of which is a "send your queue and die" mode.
pick an mta and read the docs.
Postfix would be _ideal_ except that "relayhost" is static. I don't
believe there is any way to define "relayhost" to change according to
your current ISP.
If you use dhclient as your dhcp client, you can write up a
/etc/dhcp/dhclient-exit-hooks to read the smtp-server option given by
the DHCP server, and modify any necessary configuration files as
necessary with sed/grep/etc...
I do this currently to modify my samba configuration to dynamically take
advantage of WINS servers.
Of course, if the DHCP server doesn't provide the smtp-server option,
well, you can always set it based on the domain-name option...
-Richard
--
[email protected] mailing list