Re: [gentoo-user] Simple SMTP queue for a laptop

2005-11-01 Thread Oliver Friedrich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom Eastman wrote:

 Hey guys,

 I know there must be a bunch of these out there, but there's always
 a problem with signal-to-noise for this kind of question.

 I have a laptop, from which I would like to be able to send mail
 whenever I feel like it. This laptop is only occasionally
 connected to the internet, and has very low resources (so memory
 resident daemons are less favourable).

 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.

 When I'm connected to a network, I can then manually dump the queue
 onto the smtp server *of my choice*, since the server would very
 depending on where I'm plugged into.

 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.

 Any ideas?

 Thanks!

 Tom

Just found... look at mail-mta/esmtp

http://esmtp.sourceforge.net/

It will do deliver on user based configuration,queueing for
dial-up-connections and local delivery via MDA.

Greets BeowulfOF
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDZzEncZpid1GuHxcRAk8yAJ4wrdbKOw39IIfswUveMbR9OB67ZgCfdiOt
40UqKFNCxvwdXv7AOLaIVJY=
=/nML
-END PGP SIGNATURE-

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Simple SMTP queue for a laptop

2005-10-26 Thread John Jolet


On Oct 25, 2005, at 4:51 PM, Tom Eastman wrote:


Hey guys,

I know there must be a bunch of these out there, but there's always  
a problem with signal-to-noise for this kind of question.


I have a laptop, from which I would like to be able to send mail  
whenever I feel like it.  This laptop is only occasionally  
connected to the internet, and has very low resources (so memory  
resident daemons are less favourable).


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.


When I'm connected to a network, I can then manually dump the queue  
onto the smtp server *of my choice*, since the server would very  
depending on where I'm plugged into.


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.

Any ideas?

Thanks!

Tom

--
gentoo-user@gentoo.org mailing list




--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Simple SMTP queue for a laptop

2005-10-26 Thread John Jolet


On Oct 26, 2005, at 3:22 PM, 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.


hadn't thought of that, since my home mail server allows  
authenticated smtp.  darn.



So if he runs `postfix flush`:
- and he has no relayhost defined then some ISPs will reject his  
mail because it comes from dial-129.crummy.isp.net  (AOL like to do  
this)
- and he has his home ISP's SMTP server listed then it will likely  
fail when sending mail from his office.


Apple's email program handles this pretty well, accepting a list of  
SMTP servers that it'll try in turn, but I don't know about any of  
the Linux email programs. I would have thought that the ideal  
solution for the original poster would be to find an SMTP server  
that he can access from anywhere, probably using authenticated  
SMTP. If he wants a queue for when his laptop is offline then he  
uses Postfix locally  sets the authenticating SMTP server as  
relayhost - all messages will be delivered that way when he runs  
`postfix flush`.


I believe that Yahoo!  GMail offer outgoing authenticated SMTP  
services, and if you have a Yahoo.co.uk address this is free.  
Alternatively he could set up Postfix on his home server  relay  
through that.


The final solution (that i can think of) would be to write a  
dump_all_mail_to script that takes $1 and edits it into the  
relayhost line of /etc/postfix/main.cf but I'm inclined to think  
that the other solutions are better because they're more  
standardised.


Stroller.

--
gentoo-user@gentoo.org mailing list




--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Simple SMTP queue for a laptop

2005-10-26 Thread Richard Fish

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

--
gentoo-user@gentoo.org mailing list