Saturday March 23, 2019 - 11:42:15 AM

Registered Linux User #440901    

Login    Register
Login Required

Postfix Mail Server Information

This information page is for the mail server Postfix and the time of this writing version 2.5.x on Ubuntu Linux 8.04 LTS & 2.8.x on 10.04 LTS
This is assuming postfix is already installed and you chose internet mail server as the option during setup.

We'll try to focus on the things that are not so prevalent on the internet and make the life of the admin easier.
Only a basic install is covered here. The main focus will be anti-spam measures and administration.

sudo apt-get install postfix

There are some other packages that should be installed and will need to be present if following the examples, especially if you plan on doing any copy/paste into your config files. Please note: One of the packages listed below and recommended will conflict with webmin. See the Apache info page for information on webmin and changing it's listening port from 10000 to something else.

sudo apt-get install pfqueue policy-weight postfix-cdb postfix-pcre postfix-smtpguard postgrey spamass-milter whitelister

whitelister listens on the same port as the default config of webmin (port 10000)

Postfix Post Install

First, let's make sure postfix is running. In a terminal:

sudo netstat -antupl | grep master

If you get an output that looks like:

tcp        0      0    *               LISTEN      2961/master     

The number before /master will be random and is the pid.
If you don't get anything returned, postfix didn't start. Try the following to start it

sudo /etc/init.d/postfix start

What version am I running?

To see what version you are of Postfix is running, do this:

postconf -d | grep mail_version

That should give you something like:

mail_version = 2.8.5
milter_macro_v = $mail_name $mail_version
Collecting For A Server Upgrade  

Live logging

To see what is happening live on your mail server:
Bring up a terminal on or ssh into your mail server. Put the following in:

tail -fv /var/log/mail.log

Send yourself an email from gmail.

Of course, when it was tested, gmail was listed in one of the RBLs that we use...:[

Aug 20 06:51:09 MYMAILSERVERNAME postfix/smtpd[26625]: connect from[]
Aug 20 06:51:09 MYMAILSERVERNAME postgrey[5874]: action=pass, reason=triplet found, delay=132126,, client_address=,, 
Aug 20 06:51:10 MYMAILSERVERNAME postfix/smtpd[26625]: NOQUEUE: reject: RCPT from[]: 554 5.7.1 Service unavailable; Client host [] blocked using; Sorry is blacklisted at; from=<> to=<> proto=ESMTP helo=<>
Aug 20 06:51:11 MYMAILSERVERNAME postfix/smtpd[26625]: disconnect from[]

By default, tail will give you the last 10 lines of the file.
If you want more lines add the “-n” switch. To get the last 15 lines do this:

tail -fv -n 15 /var/log/mail.log

“Windows - Just Say No”

@ Active Member Project Honeypot  email addresses

This page was last modified on 09/1/18 @ 10:33:50:pm
This file name: info_postfix.php

Questions, Comments, Suggestions or Requests should be sent to: 

There have been  84460  Unique Visitors (IP Addresses) to this site.

Current users online : 14
Maximum users at a time : 50
Last 25 attacks have come from:

There are currently 25 unique IP addresses blacklisted.

Public Server Status
server offline limelight  web service
 Aw Crap!, It's Off-Line
server offline limelight  mail service
 Aw Crap!, It's Off-Line
server online www  web service
 Is On-Line
server online mx 08  mail service
 Is On-Line
server online www01  F/O web service
 Is On-Line
server online mx 09  mail service
 Is On-Line
server online tertiary  DNS service
 Is On-Line
server online mx 10  mail service
 Is On-Line

©Copyright 2004-2019 - - Redd Enterprises™, Inc.,  All Rights Reserved.
Ubuntu® is a registered trademark of Canonical Ltd.
Linux® is a registered trademark of Linus Torvalds.
Apache® is a registered trademark of The Apache Software Foundation.
PHP® is a registered trademark of The PHP Group.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
All other product and service names mentioned are the trademarks of their respective companies.


Let us know what you think!