Tag Archives: mail

Install OpenDKIM with Postfix on CentOS

Install opendkim    ( epel repoor other sources ) Either find/add those options to the original config file, or even better, make a copy of the original file and replace /etc/opendkim.conf with the following: AutoRestart Yes # Need to investigate this … Continue reading

Posted in Linux | Tagged | Leave a comment

Bypass amavisd-new scanning – Postfix integration

Bypass amavisd-new scanning – Postfix integration There is a disclaimer for this document located at http://www200.pair.com/mecham/spam/. This ‘How do I bypass amavisd-new?’ topic comes up often on both the Postfix and the amavisd-new mailing lists. While it appears there should … Continue reading

Posted in Linux | Tagged | Leave a comment

Postfix – force send/requeue deferred message

Find the QUEUE-ID number and run: find /var/spool/postfix/deferred/ -name 518A89B30 -exec stat {} \; File: `/var/spool/postfix/deferred/5/518A89B30′ Size: 59246         Blocks: 120        IO Block: 4096   regular file Device: fd01h/64769d    Inode: 39728       Links: 1 Access: (0700/-rwx——)  Uid: (   89/ postfix)   Gid: (   … Continue reading

Posted in Linux | Tagged | Leave a comment

Postfix certificate verification failed for… (when forwarding to Exchange)

To get rid of this notification, export the Exchange certificate and covert it to pem. (key and cert in one file called exchange.pem) See Converting SSL Certificates with OpenSSL mkdir /var/spool/postfix/certs && chown postfix /var/spool/postfix/certs In /etc/postfix/main.cf add smtp_tls_CAfile = … Continue reading

Posted in Linux | Tagged | Leave a comment

Qmail – force send mails from queue

kill -ALRM `pidof qmail-send`

Posted in Linux | Tagged | Leave a comment

Qmail – bounceback emails from outside my domain

Edit .qmail file | echo “$SENDER” | grep -Eq ‘@my_domain.com$’ || bouncesaying “Private address!” # Bounce all except from @domain1.com & @domain2.com | echo “$SENDER” | egrep ‘@domain1|@domain2.com’ || bouncesaying “Private address!”

Posted in Linux | Tagged | Leave a comment

Send mail as “Someone”

mail -s “Subject”  target_user@domain.com — -F “Someone” < /tmp/mail.txt

Posted in Linux | Tagged | Leave a comment