[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using a remote IMAP server and smarthost



On Sun, August 26, 2007 17:42, Florian Kulzer wrote:
[...]
> I vaguely remember that I had difficulties
> in the past when I tried to get exim4 to work over a forwarded port. The
> most straightforward approach is to run "dpkg-reconfigure exim4-config"
> and select "local delivery only" (for system mails from cronjobs, etc.).
> Then you can either use mutt's built-in smtp mechanism (exists in Lenny
> and Sid, but not in Etch, I think) or you can install the "msmtp"
> package which provides a sendmail work-alike that is very easy to
> configure. Here is an example configuration file (~/.msmtprc):
>
> #-------------------------
> tls on
> host localhost
> port 2525
> from user@server.tld
> auth on
> user YOUR_USERNAME
> password YOUR_PASSWORD
> #-------------------------
>
> Then you can tell mutt to use msmtp by putting
>
> set sendmail="/usr/bin/msmtp"
>
> into your ~/.muttrc and you should be ready to go.


Florian, you are a genius!  You make it all so simple.

I'll get on to it shortly and let you know if it succeeds.



> Of course, it would be even more interesting if you could install and
> configure msmtp on your VM (using the smarthost of your provider
> directly in .msmtprc). If this works with mutt running on the VM then it
> should be possible to use "method 2" of my previous mail for your local
> mutt by changing the command in the wrapper script to:
>
> cat - | ssh myvm "/usr/bin/msmtp $@"

I may try that too.

Thanks again,

-- 
richard




Reply to: