Gentoo Archives: gentoo-user

From: John Jolet <john@×××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Simple SMTP queue for a laptop
Date: Wed, 26 Oct 2005 20:42:48
Message-Id: E716DBAE-BE4E-4417-9FCA-0D6363BEE7CD@jolet.net
In Reply to: Re: [gentoo-user] Simple SMTP queue for a laptop by Stroller
1 On Oct 26, 2005, at 3:22 PM, Stroller wrote:
2
3 >
4 > On Oct 26, 2005, at 12:27 pm, John Jolet wrote:
5 >
6 >>> ...
7 >>> So what I'm looking for is a program that acts like
8 >>> 'sendmail' (so that I can send email from mutt), and when it gets
9 >>> mail to send it stores it in a queue....
10 >>>
11 >>> Some kind of command like:
12 >>>
13 >>> $ sudo dump_all_mail_to smtp.wherever.i.am.net
14 >>>
15 >>> Does such a program exist? Really I'm just looking for something
16 >>> like ssmtp, but with a queue.
17 >>>
18 >>
19 >> most mtas (postfix, sendmail, and exim for sure) have multiple
20 >> ways of being called. One of which is a "send your queue and die"
21 >> mode. pick an mta and read the docs.
22 >>
23 >
24 > Postfix would be _ideal_ except that "relayhost" is static. I don't
25 > believe there is any way to define "relayhost" to change according
26 > to your current ISP.
27 >
28 hadn't thought of that, since my home mail server allows
29 authenticated smtp. darn.
30
31 > So if he runs `postfix flush`:
32 > - and he has no "relayhost" defined then some ISPs will reject his
33 > mail because it comes from dial-129.crummy.isp.net (AOL like to do
34 > this)
35 > - and he has his home ISP's SMTP server listed then it will likely
36 > fail when sending mail from his office.
37 >
38 > Apple's email program handles this pretty well, accepting a list of
39 > SMTP servers that it'll try in turn, but I don't know about any of
40 > the Linux email programs. I would have thought that the ideal
41 > solution for the original poster would be to find an SMTP server
42 > that he can access from anywhere, probably using authenticated
43 > SMTP. If he wants a queue for when his laptop is offline then he
44 > uses Postfix locally & sets the authenticating SMTP server as
45 > "relayhost" - all messages will be delivered that way when he runs
46 > `postfix flush`.
47 >
48 > I believe that Yahoo! & GMail offer outgoing authenticated SMTP
49 > services, and if you have a Yahoo.co.uk address this is free.
50 > Alternatively he could set up Postfix on his home server & relay
51 > through that.
52 >
53 > The final solution (that i can think of) would be to write a
54 > dump_all_mail_to script that takes $1 and edits it into the
55 > "relayhost" line of /etc/postfix/main.cf but I'm inclined to think
56 > that the other solutions are "better" because they're more
57 > "standardised".
58 >
59 > Stroller.
60 >
61 > --
62 > gentoo-user@g.o mailing list
63 >
64 >
65
66 --
67 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Simple SMTP queue for a laptop Stroller <stroller@××××××××××××××××××.uk>