Mail Server
DNS¶
domains¶
domain | owner | registrar | dns servers | mx |
---|---|---|---|---|
anago.cc | Anago | |||
anagousa.com | Anago | |||
(a) anagocleaning.com | Anago | |||
(a) anagosfl.com | Anago | |||
chilsoninternational.com | ||||
cnsn.com | ||||
cookesplumbing.com | Cookes | |||
(a) callookes.com | Cookes | |||
(a) cookesseptic.com | Cookes | |||
encantoriviera.com | ||||
exhibitsetc.com | A.Meller | |||
(a) exhibitsetcetera.com | A.Meller | |||
ices.net | Luc Banwarth | |||
levyrealtyadvisors.com | Alan Levy | |||
mailw.com | ||||
playadelcarmenrealestatemexico.com | Judi Shaw | |||
(a) judishaw.com | Judi Shaw | |||
psychicliving.com | ||||
serviceoptionsusa.com | ||||
turneyenterprises.com | ||||
(a) edturney.com | ||||
vnamics.com | Avner | |||
vnyx.net | VNYX | |||
(a) fll.vnix.net | VNYX | |||
(a) vnix.cloud | VNYX | |||
(a) vnix.com | VNYX | |||
(a) vnix.net | VNYX | |||
(a) vnyx.com | VNYX | |||
walcomgmt |
(a) alias
_spf.mailw.com¶
Used on all domains CNAME of _spf of domain.
v=spf1 ip4:208.52.188.188 ip4:208.52.188.176 ip4:45.27.170.188 ip4:45.27.170.176 a mx -all exp=fail.spf.mailw.com
FreeBSD Installation¶
Disable sendmail¶
Sendmail is replaced by surgemail.
sudo service sendmail stop
sudo sysrc sendmail_enable="NO"
sudo sysrc sendmail_submit_enable="NO"
sudo sysrc sendmail_outbound_enable="NO"
sudo sysrc sendmail_msp_queue_enable="NO"
sudo cat /etc/rc.conf
echo "HELLO from ${HOSTNAME}" | mail -s "SMTP Works!" [email protected]
Check errors in /var/log/maillog
You may have to reboot
Download and install Surgemail¶
First go to surgemail.com and copy the HTTP link for the version.
Example
sudo -i
wget https://netwinsite.com/ftp/surgemail/surgemail_###_freebsd8.tar.gz
gunzip surgemail_###_freebsd8.tar.gz
tar -xf surgemail_###_freebsd8.tar.gz
cd mtemp
./install.sh
Install startup¶
Checking¶
Check the /etc/rc.conf
It should include these lines for mail server operation. Bind name server running, time server running, antivirus running and sendmail disabled.
named_enable="YES"
ntpdate_enable="YES"
ntpdate_hosts="in.pool.ntp.org"
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
Cleaning up old files¶
Suggested by the developer on 07/12/2020. Use this as a guide.
rm admin*.rec
rm crash*.log
rm domain_usage_201*.rec
rm expire_12*.log
rm moved*.log
rm -r rec1*
rm resync.ini*
rm users_201*.rec
rm webnews*
Manually adding certificates¶
Each domain gets a subdirectory under /usr/local/surgemail/ssl.
Copy certs to /usr/local/surgemail/ssl/DOMAIN.NAME/surge_cert.pem and surge_priv.pem
Alias domains need this:Settings Log¶
Setting | Before | After | Note |
---|---|---|---|
G_TARPIT_BADRCPT | 4 | -1 | Decreased SMTP Transaction Time by 5secs |