≡ Menu

reload postfix

Start / Stop / Restart Postfix Mail Server

How do I start / stop / restart my postfix mail server under Linux or UNIX operating systems?
[click to continue…]

Postfix Forward Email To Another Email Account

I've multiple virtual domain hosted on CentOS Postfix server. How do I forward selected virtual domain email to yahoo / gmail or other email account using Postfix email server?
[click to continue…]

Postfix Hide Client (MUA) System IP Address / Hostname

I've central mail server gateway. All of our internal systems through this box. How do I remove or hide the hostnames and IP addresses of our internal systems from the messages headers before they go out to other users for security purpose?
[click to continue…]

Postfix block PDF or ZIP files attachments

Q. How do I block all PDF or ZIP files attachments under Postfix Mail Server?

A. You can easily block email attachments using mime header check.

Open postfix config file

Login as the root, enter:
# vi /etc/postfix/main.cf

Block zip or pdf files

Use mime_header_checks postfix config directive, enter:
mime_header_checks = regexp:/etc/ostfix/block_attachments
Save and close the file. Open /etc/ostfix/block_attachments file and append code as follows:
/name=[^>]*\.(pdf|zip)/ REJECT
Save and close the file.

Restart Postfix MTA

You must restart or reload postfix:
# /etc/init.d/postfix reload