John J. Foster wrote:
> Good afternoon,
> 
> I solved my problem of a few days ago by adding
> 
> [EMAIL PROTECTED]
> AuthPass=PASSWORD
> 
> to /etc/ssmtp/ssmtp.conf. This was related to my ISP now requiring SMTP
> AUTH for mail. But I'm concerned about the security implications of
> having this in a world-readable file. If this was only necessary to get
> mutt mail off my system, I could just add
> 
> set sendmail="/usr/sbin/ssmtp -au [EMAIL PROTECTED] -ap PASSWORD"
> 
> to my .muttrc file. But cron also need this in order to mail me results
> of nightly jobs using mailx. I realize this is just a single user
> system, but this solution just doesn't seem right. Are there config
> options that can be placed in individual $HOME rc files, ie.
> $HOME/.ssmtp.conf. I can't seem to track down much documentation on
> ssmtp.conf. I don't really want to go with something fullblown like
> sendmail.
> 

How bout using msmtp? It's lightweight and is well documented (?).. To
use it change the value of sendmail in your .muttrc to this:

        set sendmail="/usr/bin/msmtp"

Also fill in your account details in ~/.msmtprc:

        account default
        host smtp.your_provider.net
        from [EMAIL PROTECTED]
        #see man page for more auth options
        auth login
        user your_username
        password your_password
        #If your SMTP Server supports TLS encryption, uncomment the next line
        #tls

Be sure to execute chmod 0600 ~/.msmtprc

I copied these info from Gentoo Documentation.. Hope this helps..
Personally i use postfix with my gmail account..

Farhan Ahmed

P.S: Give muttng a try.. It has lots of features like nntp, smtp,
sidebar support and plenty..
-- 
Place           :  Bangalore, Karnataka, India
GPG Key         :  8BE90E98
WengoPhone ID   :  farhanahmed
IRC Nick        :  farhanahmed / farhanahmed06 (irc.freenode.net)

Attachment: pgpINKeC6F08c.pgp
Description: PGP signature

Reply via email to