View Full Version : [ubuntu] postfix configuration error. help :(

September 15th, 2008, 12:22 PM
this is my main.cf configuration for postfix

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = enyo.venom.lab
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydomain = venom.lab
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks_style = subnet
mynetworks =,,
#relay_domains = $mydestination
#relayhost = $mydomain

mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
mailbox_command =
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth-client
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authentication,permit_mynetworks,rejec t_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
#local_recipient_maps =

my mail server ip address = and my client machine is

i also use dovecot-imap with mbox mail box

on client, i created a user "ams" and use mutt to send/receive email.

i cant never find the emails i sent, eventho it says mail sent.


Sep 15 11:18:29 enyo dovecot: imap-login: Login: user=<ams>, method=PLAIN, rip=, lip=, TLS
Sep 15 11:18:45 enyo postfix/smtpd[4544]: connect from unknown[]
Sep 15 11:18:45 enyo postfix/smtpd[4544]: warning: unknown smtpd restriction: "permit_sasl_authentication"
Sep 15 11:18:45 enyo postfix/smtpd[4544]: NOQUEUE: reject: RCPT from unknown[]: 451 4.3.5 Server configuration error; from=<ams@venom.lab> to=<ams@venom.lab> proto=ESMTP helo=<client1.venom.lab>
Sep 15 11:18:45 enyo postfix/cleanup[4547]: 7CEC57E4B: message-id=<20080915111845.7CEC57E4B@enyo.venom.lab>
Sep 15 11:18:45 enyo postfix/qmgr[4397]: 7CEC57E4B: from=<double-bounce@enyo.venom.lab>, size=989, nrcpt=1 (queue active)
Sep 15 11:18:45 enyo postfix/smtpd[4544]: disconnect from unknown[]
Sep 15 11:18:45 enyo postfix/local[4548]: 7CEC57E4B: to=<root@venom.lab>, orig_to=<postmaster>, relay=local, delay=0.11, delays=0.07/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 15 11:18:45 enyo postfix/qmgr[4397]: 7CEC57E4B: removed

i tried to telnet from client machine to the mail server, and i got this output:

telnet enyo.venom.lab 25
Connected to enyo.venom.lab.
Escape character is '^]'.
220 enyo.venom.lab ESMTP Postfix (Ubuntu)
ehlo venom.lab
250-SIZE 10240000
250 DSN
mail from:ams@venom.lab
250 2.1.0 Ok
rcpt to:ams@venom.lab
451 4.3.5 Server configuration error

i am a newbie in ubuntu
any help would be greatly appreciated

thank you