This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: ssmtp with multiple email accounts


See, I knew someone else must have run into this :-)

George Davidovich, who would rather I didn't publish his email
address, sent me this:

---------- Forwarded message ----------
>
>IIRC, ssmtp is dead or dying and has a few outstanding issues, though
>both ssmtp and msmtp are available for Cygwin.   The following is for
>msmtp.
>
>#
># ~/.mutt/muttrc
>#
>folder-hook . set sendmail="/usr/local/bin/msmtp -a REAL"
>folder-hook mbox1'set sendmail="/usr/local/bin/msmtp -a REAL"'
>folder-hook mbox2'set sendmail="/usr/local/bin/msmtp -a OTHER"'
>
>#
># ~/.msmtprc
>#
>account REAL
>host my.smtp.host1
>from <some address>
>auth login
>user foo
>password 012345
>
>account OTHER
>host my.smtp.host2
>from <some other address>
>auth login
>user bar
>password 012345
>
>If you are intent on using ssmtp, something along the following (taken
>from an old muttrc file) should work:
[..]
>folder-hook mbox1 \
>'set sendmail="/usr/sbin/ssmtp.exe -aufoo@smtp1.host -ap012345"'

The ''set sendmail="/usr/sbin/ssmtp.exe -au...'' definitely works.
What I couldn't get to work was ''set sendmail="/usr/sbin/ssmtp.exe
-C<some config file>'' but I haven't managed to get to the bottom of
that yet. I kept getting a message something like "Couldn't connect to
mailhub:25" which was a bit odd because in the referenced config file
I specified port 465 as I recall, so it isn't clear if it isn't
picking up the file correctly or if there is an issue or incorrect
error message in ssmtp, or what.

I'm not so keen on using the folder-hook since I have *lots* of
folders and so would need to keep the hooks sync'd with
creation/deletion of folders, but it works fine for what it is.

If I make any further advances I'll post to the list, but meanwhile I
hope someone finds this info useful.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]