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 PROTECTED] 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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"