On Tue, 22 Sep 2009, Yan Seiner wrote: > > On Tue, September 22, 2009 3:25 pm, Davide Libenzi wrote: > > On Tue, 22 Sep 2009, Yan Seiner wrote: > > > >> I'm a total xmail newbie so I'm struggling a bit with the basics. > >> > >> I am trying to set up xmail on an embedded platform running linux. The > >> machine in question will collect information and periodically email a > >> status report via a smarthost. > >> > >> The platform has a sporadic connection to the outside world. > >> > >> I'd like to configure xmail to > >> 1) spool any email it receives from the internal network > >> 2) on connection, run the queue (this will be handled by the ifup > >> script) > >> > >> The smarthost uses TLS and requires authentication. How do I configure > >> xmail to do that? > > > > Do you really need a mail server to do that? > > You can just collect your information and shoot an email to the smart-host > > when the connection comes up (via post-up scripts). > > IMO no need to setup a mail server. > > I've been struggling with that. But the smarthost requires TLS > authentication, and what with spooling the messages and then sending them, > it's a bit of a stretch for me to write all that in a script. Plus the > whole thing of retries if the connection goes down in the middle of a > transmission, and all that.
For SSL, there are modules (Perl, but I bet you can find them in almost any scripting language), like: http://search.cpan.org/~gbarr/libnet-1.22/Net/SMTP.pm http://search.cpan.org/~cwest/Net-SMTP-SSL-1.01/lib/Net/SMTP/SSL.pm http://search.cpan.org/~fayland/Email-Send-SMTP-TLS-0.03/lib/Email/Send/SMTP/TLS.pm They support TLS and ESMTP authentication AFAIK. If using XMail (that IMO is overkill for this), you will need to setup a queue retry policy so that messages live in the queue long enough to see a connection coming up. Plus, you will still need to issue an ERTN command to flush the queue while the connection is up. - Davide _______________________________________________ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail