I have for some days trying to figure how to setup Anope with email support and I finally made it work with "ssmtp"
So the first thing you need to do is install :
Code: [Select]
sudo apt-get update
Code: [Select]
sudo apt-get install ssmtp
then edit the following file:
Code: [Select]
sudo nano /etc/ssmtp/ssmtp.conf
You then need to make some changes to the file:
Code: [Select]
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
#root=postmaster
root=
#Debug - remove the # if you need to debug (the file you need to look into is : /var/syslog)
#Debug=Yes
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail.yourprovider.com:587
AuthUser=YOURMAILADRESS
AuthPass=YOURPASSWORD
UseTLS=YES
UseSTARTTLS=YES
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=YOURHOSTNAME
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
And lastly make this change:
Code: [Select]
sendmailpath = "/usr/sbin/ssmtp -t"
Thats how I made it work
