|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
SmarthostI'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? Thanks, --Yan -- o__ ,>/'_ o__ (_)\(_) ,>/'_ o__ A day may come (_)\(_) ,>/'_ o__ when the courage of men fails, (_)\(_) ,>/'_ o__ when we forsake our friends and break all (_)\(_) ,>/'_ bonds of fellowship, but it is not this day. But it is not this day! (_)\(_) This day we ride! _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
Re: SmarthostOn 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. - Davide _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
Re: SmarthostOn 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. I was hoping to find a ready-made solution and nothing else seems to support both spooling and SSL and presumably retries if the message send fails. --Yan -- o__ ,>/'_ o__ (_)\(_) ,>/'_ o__ A day may come (_)\(_) ,>/'_ o__ when the courage of men fails, (_)\(_) ,>/'_ o__ when we forsake our friends and break all (_)\(_) ,>/'_ bonds of fellowship, but it is not this day. But it is not this day! (_)\(_) This day we ride! _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
Re: SmarthostOn 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@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
Re: SmarthostOn Tue, September 22, 2009 4:04 pm, Davide Libenzi wrote: > > 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. Hah! Although not the same, I discovered msmtp, which is a one-shot MTA. (You pipe a message to it, it tries to send it, and then goes away.) It handles TLS and with a few bash scripts to handle spooling, I should be able to do what I need. Thanks for the prodding! :-) -- o__ ,>/'_ o__ (_)\(_) ,>/'_ o__ A day may come (_)\(_) ,>/'_ o__ when the courage of men fails, (_)\(_) ,>/'_ o__ when we forsake our friends and break all (_)\(_) ,>/'_ bonds of fellowship, but it is not this day. But it is not this day! (_)\(_) This day we ride! _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
| Free embeddable forum powered by Nabble | Forum Help |