Operating Postfix

USER ACCOUNTS

create a mailbox

groupadd mailusers
useradd -g mailusers -m -s /sbin/nologin USER
#-k /dev/null
#-s /bin/false
#-s /dev/null

#passwd USER

remove a mailbox and loose its data

userdel -r USER

OPERATIONS

make sure the unix socker for SPF is up and running

netstat -an | grep policy

FROM SOURCE (OR CONTAINER) OPERATIONS

apply minor config change

postfix check && echo ok
postfix reload

restart

which postfix
postfix stop
ps auxww | grep master
postfix check && echo ok
postfix start

NETBSD OPERATIONS

tail -100 -F /var/log/maillog

/etc/rc.d/postfix restart

and in case this is a custom build

vi /etc/rc.local

/usr/sbin/postfix start && echo -n postfix330
/usr/sbin/postconf -d | grep version

DEBIAN/UBUNTU OPERATIONS

tail -F /var/log/mail.*

systemctl restart psotfix

ACCEPTANCE

see postfix.acceptance

ADDITIONAL NOTES

wipe-out all

postsuper -d ALL

How to delete mail queue in Postfix https://sharadchhetri.com/2014/02/06/how-to-delete-mail-queue-in-postfix/

manual reject

Deal with spam that eventually came through the hereby protections (wow, so that’s a clean spam!): look at the headers what fqdn connected to your MX and reject it manually so it doesn’t spam you again,

vi /etc/postfix/client_access

compute.amazonaws.com   REJECT compute.amazonaws.com is identified as a spam domain
.compute.amazonaws.com  REJECT compute.amazonaws.com is identified as a spam domain

postmap /etc/postfix/client_access

deal with Microsoft

unblock your server from MS’s blacklists:

How to Remove Your IP from the Hotmail Blacklist https://www.rackaid.com/blog/hotmail-blacklist-removal/

Microsoft’s Sender Information Form https://support.live.com/eform.aspx?productKey=edfsmsbl3&ct=eformts&wa=wsignin1.0&scrx=1

deal with Outlook.com

register to live.com and define your IP into SNDS: https://postmaster.live.com/snds/

then file a request to un-block your IP: https://support.microsoft.com/en-us/getsupport?oaspworkflow=start_1.0.0.0&wfname=capsub&productkey=edfsmsbl3


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml