Re: Lite SMTP server/daemon
> >qpsmtpd? It is small, plugin-based, and also written in Perl. > I couldn't discern, BTW, whether it supports TLS / SSL to an > upstream MTA? I did find this thread: > > http://www.nntp.perl.org/group/perl.qpsmtpd/2005/07/msg3404.html That thread, I think, is about presenting TLS to the clients who submit mail - rather than piping from the proxy itself to the upstream/"real" server. When I've used qpsmtpd in the past I used the `exim-bsmtp` process to talk to exim4 on the local-system. That didn't involve using TLS, just a pipe. The "smtp-forward" plugin doesn't seem to support TLS either, for what that's worth. Generally I'd assume: internet -> qpsmtpd -> [exim|postfix|whatever on the local host] So the lack of TLS on the final hop hasn't been a concern to me personally. I can appreciate others might disagree. Steve --
Re: Lite SMTP server/daemon
On Sun, 2 May 2010 04:33:46 +0100 Steve Kemp wrote: > On Sat May 01, 2010 at 22:24:13 -0400, Celejar wrote: > > > I couldn't discern, BTW, whether it supports TLS / SSL to an > > upstream MTA? I did find this thread: > > > > http://www.nntp.perl.org/group/perl.qpsmtpd/2005/07/msg3404.html > > > > but I have no idea what the current status of this is. > > It seems like that isn't present yet, the only core TLS support > I can spot is a plugin for accepting TLS-wrapped connections not > initiating them. So I haven't been totally wasting my time ( ;) ), since my tmta does support outbound SSL / TLS connections, and indeed, that was a primary design goal, since I need to push mail out through Gmail's SMTP servers, which require SSL / TLS. > I've usually used qpsmtpd to process mail then either: > > * Reject it at SMTP time. > * Accept it for delivery and write the mail directly to Maildir folders. > * Accept it for delivery and pass to exim4 for final delivery. > > (ie. I've never tried to re-deliver to a remote machine via qpsmtpd, > only via passing to exim4.) Got it. The O'reilly discussion that I saw also mentioned that qpsmtpd was primarily meant to be used in conjunction with a normal MTA, and not to replace one. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100501232342.079837a2.cele...@gmail.com
Re: Lite SMTP server/daemon
On Sat May 01, 2010 at 22:24:13 -0400, Celejar wrote: > I couldn't discern, BTW, whether it supports TLS / SSL to an > upstream MTA? I did find this thread: > > http://www.nntp.perl.org/group/perl.qpsmtpd/2005/07/msg3404.html > > but I have no idea what the current status of this is. It seems like that isn't present yet, the only core TLS support I can spot is a plugin for accepting TLS-wrapped connections not initiating them. I've usually used qpsmtpd to process mail then either: * Reject it at SMTP time. * Accept it for delivery and write the mail directly to Maildir folders. * Accept it for delivery and pass to exim4 for final delivery. (ie. I've never tried to re-deliver to a remote machine via qpsmtpd, only via passing to exim4.) Steve -- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100502033346.ga27...@steve.org.uk
Re: Lite SMTP server/daemon
On Fri, 30 Apr 2010 16:28:22 -0500 Stan Hoeppner wrote: > Celejar put forth on 4/30/2010 3:20 PM: > > > It is still small, though - under 70 lines of actual Perl code, > > although it does, of course, require the basic Perl installation and > > about a half-dozen other modules. > > > > If anyone has any feedback, or suggestions for improvement, I'd love > > to hear them. > > If you're writing an smtpd from scratch in Perl, why reinvent the wheel? > > http://wiki.qpsmtpd.org/ Thanks. Steve Kemp also pointed this out to me. I hadn't found it, and since neither you, nor he, responded to me earlier email wondering if such a thing existed, I decided to practice my perl by coding one myself ... Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100501222630.3ec5cbca.cele...@gmail.com
Re: Lite SMTP server/daemon
On Fri, 30 Apr 2010 23:10:11 +0100 Steve Kemp wrote: > On Fri Apr 30, 2010 at 16:20:40 -0400, Celejar wrote: > > > > Hm, I had thought that at least some of the small, relaying MTAs > > > accepted connections on port 25. On closer perusal, it looks like they > > > don't. > > .. > > > I was sufficiently intrigued by the (apparent) absence of a simple MTA > > that does the above, so I decided to write my own: Tmta. It actually > > works, and is documented, although it's still pretty much in the > > proof-of-concept stage: > > > > https://sourceforge.net/projects/tmta/ > >qpsmtpd? It is small, plugin-based, and also written in Perl. > >There are inetd versions, prefork versions, and simple fork-on-demand > too. Chances are you can configure it to recognise a single domain, > or act as a smart-host with only one of the available plugins which > makes it a trivially portable solution. > >Insanely customizable and very very useful to me, but also I think > something that could be used even as a very simple MTA. Thanks! I missed that one, and when no one corrected my previous email that wondered if such a thing existed, I assumed that it did not. I couldn't discern, BTW, whether it supports TLS / SSL to an upstream MTA? I did find this thread: http://www.nntp.perl.org/group/perl.qpsmtpd/2005/07/msg3404.html but I have no idea what the current status of this is. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100501222413.f5fdba21.cele...@gmail.com
Re: Lite SMTP server/daemon
On Fri Apr 30, 2010 at 16:20:40 -0400, Celejar wrote: > > Hm, I had thought that at least some of the small, relaying MTAs > > accepted connections on port 25. On closer perusal, it looks like they > > don't. .. > I was sufficiently intrigued by the (apparent) absence of a simple MTA > that does the above, so I decided to write my own: Tmta. It actually > works, and is documented, although it's still pretty much in the > proof-of-concept stage: > > https://sourceforge.net/projects/tmta/ qpsmtpd? It is small, plugin-based, and also written in Perl. There are inetd versions, prefork versions, and simple fork-on-demand too. Chances are you can configure it to recognise a single domain, or act as a smart-host with only one of the available plugins which makes it a trivially portable solution. Insanely customizable and very very useful to me, but also I think something that could be used even as a very simple MTA. Steve -- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100430221011.ga1...@steve.org.uk
Re: Lite SMTP server/daemon
Celejar put forth on 4/30/2010 3:20 PM: > It is still small, though - under 70 lines of actual Perl code, > although it does, of course, require the basic Perl installation and > about a half-dozen other modules. > > If anyone has any feedback, or suggestions for improvement, I'd love > to hear them. If you're writing an smtpd from scratch in Perl, why reinvent the wheel? http://wiki.qpsmtpd.org/ -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bdb4b76.1070...@hardwarefreak.com
Re: Lite SMTP server/daemon
[Replying to my own message.] On Mon, 26 Apr 2010 15:12:24 -0400 Celejar wrote: ... > Hm, I had thought that at least some of the small, relaying MTAs > accepted connections on port 25. On closer perusal, it looks like they > don't. > > One option would be to build your own version of one of the big ones, > with all unnecessary functionality excluded. I don't know what the > resulting binary size would be. I was sufficiently intrigued by the (apparent) absence of a simple MTA that does the above, so I decided to write my own: Tmta. It actually works, and is documented, although it's still pretty much in the proof-of-concept stage: https://sourceforge.net/projects/tmta/ One important thing that it does *not* (yet?) do is fork; it's currently implemented as a basic, single-threaded daemon, so it can only accept one connection at a time. It shouldn't be too difficult (famous last words ...) to convert into a multi-threaded model, although I have no experience with that sort of thing. It is still small, though - under 70 lines of actual Perl code, although it does, of course, require the basic Perl installation and about a half-dozen other modules. If anyone has any feedback, or suggestions for improvement, I'd love to hear them. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100430162040.f26361ba.cele...@gmail.com
Re: Lite SMTP server/daemon
o exp...@hope.cz: > Does anyone know about a tiny / liteweight SMTP server for Linux( Debian)? > I need the > server that can accept several connections at the same time . dunno if it fits for you, but on my boxes i use masqmail. -- Florian "eix" Rehnisch +49-1520-9573489 GPG 1CF2467F ICQ 99773910 e...@{freenode,ircnet,debian} http://tinyurl.com/xxxterm-eix -- Webbrowser a la Vi(m) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2010-04-27$15.14...@x.vimhelp.de.vu
Re: Lite SMTP server/daemon
[Please reply to the list, and not to me, as per the CoC.] [Please don't top post.] On Mon, 26 Apr 2010 09:48:06 +0200 exp...@hope.cz wrote: > Celejar, > Thank you for your reply. > Not full MTA > Best regards, > lad. Hm, I had thought that at least some of the small, relaying MTAs accepted connections on port 25. On closer perusal, it looks like they don't. One option would be to build your own version of one of the big ones, with all unnecessary functionality excluded. I don't know what the resulting binary size would be. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100426151224.0414130c.cele...@gmail.com
Re: Lite SMTP server/daemon
On Sat, 24 Apr 2010 04:26:16 -0500 Stan Hoeppner wrote: > exp...@hope.cz put forth on 4/24/2010 2:19 AM: > > > > Hi Celejar, > > Thank you for your reply. > > I use Linux running in Compact Flash so that the size of the Compact flash > > memory is the limit > > Users will send emails to a program running in the Compact flash so I need > > a > > mail server there too. > > Only SMTP, no POP3 server > > Can you suggest something? > > We need many more details before making a proper recommendation: ... And another crucial question: do you need a full MTA, or will you just be relaying mail to a real MTA (smarthost)? Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100425101712.cf2c9061.cele...@gmail.com
Re: Lite SMTP server/daemon
On Sat, Apr 24, 2010 at 12:35:55PM +0300, Andrei Popescu wrote: > msmtp will *not* accept incoming mail (which is what the OP asked for). > The solution is probably one of exim or postfix, possibly recompiled to > keep only a minimum of features needed for the given application, an > answer to Stan's mail will tell more. Absolutely right. My apologies to the OP. > P.S. What keyserver are you using, subkeys keeps timing out when mutt > requests your key It happenned to me too with some user's key, so I changed my default keyserver in ~/.gnupg/gpg.conf to keyserver x-hkp://pool.sks-keyservers.net Now I get better timings: $ time -p(gpg --recv-keys 448B31EB) gpg: solicitando clave 448B31EB de hkp servidor pool.sks-keyservers.net gpg: clave 448B31EB: "David Sastre Medina (David) " sin cambios gpg: Cantidad total procesada: 1 gpg: sin cambios: 1 real 0.76 user 0.01 sys 0.00 $ time -p(gpg --recv-keys DEA22DE9) gpg: solicitando clave DEA22DE9 de hkp servidor pool.sks-keyservers.net gpg: clave DEA22DE9: "Andrei Popescu " sin cambios gpg: Cantidad total procesada: 1 gpg: sin cambios: 1 real 0.29 user 0.01 sys 0.00 -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB pgp4DH0Tyxugh.pgp Description: PGP signature
Re: Lite SMTP server/daemon
On Sat, Apr 24, 2010 at 04:57:10AM -0500, Stan Hoeppner wrote: > You must have missed this in the OP's post. It's omitted in your reply > quote as well: "Users will send emails to a program running..." > > I take this to mean _remote_ network users. msmtp-mta is an smtp _CLIENT_ > only. It will not fit the OP's need. The OP's comment implies an smtp > listener is needed. Hello, I overlooked that. My apologies. Regards. -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB pgpe4lKzb3F6a.pgp Description: PGP signature
Re: Lite SMTP server/daemon
d.sastre.med...@gmail.com put forth on 4/24/2010 3:51 AM: > On Sat, Apr 24, 2010 at 09:19:56AM +0200, exp...@hope.cz wrote: >>I use Linux running in Compact Flash so that the size of the Compact >>flash memory is the limit >>Only SMTP, no POP3 server >>Can you suggest something? > > Hello, > > This simple search: > > $ apt-cache search mta light > > showed some exim4 packages and the one you are looking for: > > $ apt-cache show msmtp-mta > Package: msmtp-mta You must have missed this in the OP's post. It's omitted in your reply quote as well: "Users will send emails to a program running..." I take this to mean _remote_ network users. msmtp-mta is an smtp _CLIENT_ only. It will not fit the OP's need. The OP's comment implies an smtp listener is needed. From: http://msmtp.sourceforge.net/doc/msmtp.html#Configuration-files "1 Introduction msmtp is an SMTP client. In its default mode of operation, it reads a mail from standard input and sends it to a predefined SMTP server that takes care of proper delivery. Command line options and exit codes are compatible to sendmail." It seems clear that the OP is going to need an smtp mta with pipe or local delivery capability. Which one will depend on the answers to the questions in my previous post. -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bd2c076.7080...@hardwarefreak.com
Re: Lite SMTP server/daemon
On Sat,24.Apr.10, 10:51:56, d.sastre.med...@gmail.com wrote: > On Sat, Apr 24, 2010 at 09:19:56AM +0200, exp...@hope.cz wrote: > >I use Linux running in Compact Flash so that the size of the Compact > >flash memory is the limit > >Only SMTP, no POP3 server > >Can you suggest something? > > Hello, > > This simple search: > > $ apt-cache search mta light > > showed some exim4 packages and the one you are looking for: > > $ apt-cache show msmtp-mta ... > msmtp is an SMTP client that can be used to send mails from Mutt and > probably > other MUAs (mail user agents). It forwards mails to an SMTP server > (for > example at a free mail provider), which takes care of the final > delivery. ... msmtp will *not* accept incoming mail (which is what the OP asked for). The solution is probably one of exim or postfix, possibly recompiled to keep only a minimum of features needed for the given application, an answer to Stan's mail will tell more. Regards, Andrei P.S. What keyserver are you using, subkeys keeps timing out when mutt requests your key -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: Lite SMTP server/daemon
exp...@hope.cz put forth on 4/24/2010 2:19 AM: > > Hi Celejar, > Thank you for your reply. > I use Linux running in Compact Flash so that the size of the Compact flash > memory is the limit > Users will send emails to a program running in the Compact flash so I need a > mail server there too. > Only SMTP, no POP3 server > Can you suggest something? We need many more details before making a proper recommendation: 1. The "program" you mention picks up mail via a pipe or a file? If via file, does the program expect mbox format or maildir format? If neither, does the "program" speak smtp? If so, why are you asking your question? Just bind the program to tcp 25. 2. Storage capacity of the flash device and amount of free space? Do you already have the perl package installed? 3. Have you ever configured an smtp mta before? If yes, which one(s)? After you provide these answers we should be able to give you the exact solution you need, if it is physically possible given your storage constraints. -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bd2b938.8050...@hardwarefreak.com
Re: Lite SMTP server/daemon
On Sat, Apr 24, 2010 at 09:19:56AM +0200, exp...@hope.cz wrote: >I use Linux running in Compact Flash so that the size of the Compact >flash memory is the limit >Only SMTP, no POP3 server >Can you suggest something? Hello, This simple search: $ apt-cache search mta light showed some exim4 packages and the one you are looking for: $ apt-cache show msmtp-mta Package: msmtp-mta Priority: extra Section: mail Installed-Size: 100 Maintainer: Emmanuel Bouthenot Architecture: all Source: msmtp Version: 1.4.15-1 Replaces: mail-transport-agent Provides: mail-transport-agent Depends: msmtp Conflicts: mail-transport-agent Filename: pool/main/m/msmtp/msmtp-mta_1.4.15-1_all.deb Size: 31580 MD5sum: e1023fbea1950397004a1a4dce9f56ed SHA1: 01aff21c57739af47d4f56ec2aa6f54cca51395e SHA256: e90add2d60dad2bacb1d263d088844db9b68c258bffef1ad3280f1205481 Description: light SMTP client with support for server profiles msmtp is an SMTP client that can be used to send mails from Mutt and probably other MUAs (mail user agents). It forwards mails to an SMTP server (for example at a free mail provider), which takes care of the final delivery. Using profiles, it can be easily configured to use different SMTP servers with different configurations, which makes it ideal for mobile clients. . This package is compiled with GSASL and TLS/SSL support. . This package provides the regular MTA program. Homepage: http://msmtp.sourceforge.net/ Tag: mail::smtp, mail::transport-agent, protocol::smtp, role::program, works-with::mail Regards. -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB pgpTghEs4nLzX.pgp Description: PGP signature
Re: Lite SMTP server/daemon
Hi Celejar, Thank you for your reply. I use Linux running in Compact Flash so that the size of the Compact flash memory is the limit Users will send emails to a program running in the Compact flash so I need a mail server there too. Only SMTP, no POP3 server Can you suggest something? Thank you . Best regards, Lad. > > Does anyone know about a tiny / liteweight SMTP server for Linux( Debian)? I need the > > server that can accept several connections at the same time . > > I do not need POP3 server > > I'm not sure that I can help, but what, exactly, do you mean by tiny / > liteweight? Binary size, CPU / RAM usage? IIUC, even the heavy > hitters like Exim use very few resources when not under load. E.g., on > my system, htop shows Exim at 0 CPU, and only "6484 648 588" for "VIRT > RES SHR". > > This has come up before on the list. What, exactly, are your > restrictions / goals? > > Celejar > -- > foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator > mailmin.sourceforge.net - remote access via secure (OpenPGP) email > ssuds.sourceforge.net - A Simple Sudoku Solver and Generator > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/20100423151453.3f134ce4.cele...@gmail.com > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bd2b7bc.13085.100...@export.hope.cz
Re: Lite SMTP server/daemon
On Fri, 23 Apr 2010 18:15:33 +0200 exp...@hope.cz wrote: > Does anyone know about a tiny / liteweight SMTP server for Linux( Debian)? > I need the > server that can accept several connections at the same time . > I do not need POP3 server I'm not sure that I can help, but what, exactly, do you mean by tiny / liteweight? Binary size, CPU / RAM usage? IIUC, even the heavy hitters like Exim use very few resources when not under load. E.g., on my system, htop shows Exim at 0 CPU, and only "6484 648 588" for "VIRT RES SHR". This has come up before on the list. What, exactly, are your restrictions / goals? Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100423151453.3f134ce4.cele...@gmail.com