The config files are as follows:


myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
relayhost =
mynetworks =
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
mydestination = mysql:/etc/postfix/
local_recipient_maps = mysql:/etc/postfix/
transport_maps = mysql:/etc/postfix/

/etc/postfix/ (has this line at the bottom):

dbmail unix - n n - - pipe
flags= user=dbmail:dbmail argv=/usr/sbin/dbmail-smtp -d ${recipient}


user = secretUser
password = secretPassword
dbname = postfix
table = transport
hosts =
select_field = transport
where_field = domain


user = secret
password = secret
dbname = dbmail
hosts =
table = dbmail_aliases
select_field = alias
where_field = alias
postconf -e "myorigin ="
postconf -e "myhostname ="
postconf -e "relay_domains ="
postfix reload

Do some testing from the command line:

telnet localhost 25
mail from:
rcpt to:
To: someone@somemailprovider
Subject: Hey my first email
This is my first email on debian postfix after installing configuring it.
It was easy.


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Our weather forecast is from Wordpress Weather