Date: Wed, 6 Apr 2005 06:28:32 -0700 (PDT) From: Rob <spamrefuse@yahoo.com> To: FreeBSD questions <freebsd-questions@freebsd.org> Subject: Re: Procmail: how to deliver email over an ssh-tunnel to my smtp server. Message-ID: <20050406132833.87942.qmail@web54003.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Rob wrote: > Hello, > > I'm having 4.11 and 5.3 FreeBSD PCs. > > All incoming email arrives through fetchmail (using > imap protocol). > > I then filter all email with procmail, which is > configured such that it > trashes spam, or > delivers to local mailbox, or > forwards to another external address. > > For external delivery, I have set up an ssh tunnel > to my smtp server: > > ssh -N -f -L 2525:localhost:25 smtp.server.it > > What do I have to do next, to have the delivery > work properly? > > Can I tell procmail to push the email directly onto > the port 2525 of the ssh tunnel? > > Or do I have to reconfigure sendmail for this? > (sendmail reconfiguration info looks like a > nightmare to me though....). > > Do I have other options? I'll answer my own question here, just for the record. Use msmtp, which is highly configurable, for example defining its own outgoing port. In the .procmailrc file I only need to add: :0 | /usr/local/bin/msmtp email@address.com to forward the email with msmtp, over my own ssh tunnel port. Works like a charm. Rob. __________________________________ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050406132833.87942.qmail>