Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

As the title says do i face problems with my postfix configuration since i cant get it to send mails out from the server.

Im running Ubuntu LTS 12.04 on a cloud server.

all the mails i try to send either to my gmail or hotmail all ends up in the queue.

My postfix main.cf looks like:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# 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

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# 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

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_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 = mail.*.dk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = mail.*.dk, localhost.*.dk, *.dk, localhost
mynetworks = 127.0.0.0/8, 192.168.1.0/24
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual
inet_protocols = all
home_mailbox = Maildir/
smtpd_sasl_local_domain = yes
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtp_tls_security_level = may
smtpd_tls_security_level = encrypt
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
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
sender_dependent_default_transport_maps = hash:/etc/postfix/virtual
mydomain = mail.*.dk
relayhost =

And this is what my /var/mail.log says:

Apr 20 12:19:47 ubuserv postfix/submission/smtpd[28836]: Anonymous TLS connection established from unknown[***.181.***.136]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 20 12:19:47 ubuserv postfix/submission/smtpd[28836]: 3C9335F307: client=unknown[***.181.***.136], sasl_method=PLAIN, sasl_username=user@yes
Apr 20 12:19:47 ubuserv postfix/cleanup[28841]: 3C9335F307: message-id=<51726BC2.7060204@*.dk>
Apr 20 12:19:47 ubuserv postfix/qmgr[28375]: 3C9335F307: from=<*@*.dk>, size=673, nrcpt=1 (queue active)
Apr 20 12:19:47 ubuserv postfix/qmgr[28375]: warning: connect to transport private/info.rixjesper: No such file or directory
Apr 20 12:19:47 ubuserv postfix/error[28842]: 3C9335F307: to=<*@gmail.com>, relay=none, delay=0.24, delays=0.23/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)

Sending mails from local mail to another local mail works without problems.

I hope you can help - i spend the last many hours searching google without any luck :S

I would really appreciate any help

share|improve this question
    
What is in /etc/postfix/virtual? –  AlexD Apr 20 '13 at 10:54
    
There is mapping between mailaddress and unix users –  Jesper Rix Apr 20 '13 at 11:11
    
This file is used in sender_dependent_default_transport_maps which needs different syntax from virtual_alias_maps and it does mapping between users and transports - thats probably why you see error about 'connect to transport'. Please read postfix documentation for details about correct syntax. –  AlexD Apr 20 '13 at 11:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.