Postfix SMTP

From Wiki

(Difference between revisions)
Jump to: navigation, search
Line 24: Line 24:
  postmap /etc/postfix/restrict
  postmap /etc/postfix/restrict
Further Details at:,_Part_II
Further Details at:,_Part_II
'''SENDING AN EMAIL VIA TELNET 25 & Testing forwarding'''
'''SENDING AN EMAIL VIA TELNET 25 & Testing forwarding'''

Revision as of 21:13, 8 May 2006

Install as per normal

apt-get install postfix
Choose Internet Site Config.

After Install - Main folder = /etc/postfix
Main file =

Basic Changes:

Just the name used to identify server
myhostname =
//disable lookup of usernames disable_vrfy_command = yes Remove hash beside delay_warning_time = 4h

Advanced Changes:

To prevent cross over emails between multiple domains - e.g. where and are on the same server. Add the following line into /etc/postfix/
smtpd_sender_restrictions = check_recipient_access hash:/etc/postfix/restrict
Create the file: /etc/postfix/restrict     OK               REJECT

To activate/ add this file into postfix, type in the shell ->
postmap /etc/postfix/restrict

Further Details at:,_Part_II

SENDING AN EMAIL VIA TELNET 25 & Testing forwarding

mail from:
rcpt to:

Test and get working Normal - Should be able to send and revieve via pine etc.

Had to adjust /etc/hosts with domain name (this allowed sending emails ok):       localhost        phidebian


Delete an Email from the Queue

For Example - sending an email to someone and it bounces. Defauly retry is for 3 days. To remove it manually :

postsuper -d queue_id

Tons more info at:

Personal tools