Postfix Blocking

Posted by support | Linux MailServer, Postfix | Tuesday 28 November 2006 2:26 pm

Blocking

Postfix can block attachments. There are two ways to do this, Header and Body checks. We have to edit the main.cf file for postfix.

Step 1

add these two lines to the main.cf

header-checks = regexp:/etc/postfix/headers

body_checks = regexp:/etc/postfix/bodycheck

Step 2 Header Checks

vi /etc/postfix/headers

# dxdx Subject
/dxdx/ DISCARD

This will discard and messge with dxdx in the Subject

example,

Nov 28 13:14:17 it-manage postfix/smtpd[23931]: connect from ispmxmta06-srv.windstream.net[166.102.165.167]
Nov 28 13:14:18 it-manage postfix/smtpd[23931]: 3CC178783B0: client=ispmxmta06-srv.windstream.net[166.102.165.167]
Nov 28 13:14:18 it-manage postfix/cleanup[23935]: 3CC178783B0: discard: header Subject: dxdx from ispmxmta06-srv.windstream.net[166.102.165.167]; from= to= proto=SMTP helo=
Nov 28 13:14:18 it-manage postfix/smtpd[23931]: disconnect from ispmxmta06-srv.windstream.net[166.102.165.167]

Email backups PostFix

Posted by support | Postfix | Wednesday 15 November 2006 2:06 pm

Backup email is almost common for companies.

To backup all email for a Postfix server IN and OUT do the following.

vi /etc/postfix/main.cf (Red Hat Linux)
go to bottom of page and add

always_bcc = email address

restart postfix.
This will make all mail sender and recipient have email backup.

This will send all email to the address.

Admins can also use Dovecot and others to run a filtering program to put into folders.
***************************************************************************************

Just a few users for backup.
Adding this to the main.cf will have sender and/or recipient backups.

PostFix 2.2.2 Move

Posted by support | Linux MailServer, Postfix | Thursday 1 June 2006 8:46 am

Overview:
ES 4 Server
Application used in process for moving:
Webmin (http://webmin.com) “A very useful program)
command line

Actions performed:
1) Performed a tar -zcf postfix.tar.gz of the postfix directory.
2)Performed a backup of user accounts using Webmin.
3)Performed a backup of home directory tar -zcf home.tar.gz

FC 4 Server
Application used in process for moving:
Webmin
command line

Action performed:
1)Installed postfix using YUM
2)Installed Webmin
3)Extracted the postfix.tar.gz (overwrite of the original installed directory.
4)Extracted the home.tar.gz
5)Using Webmin interface did a restore of the user accounts.
6)tested usernames and passwords and it worked.