Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed zarafa on my vserver and use as MTA postfix. The webaccess works fine, I can revceive and send emails, also receiving mails with thunderbird (IMAP ssl/tls) works. But there is a problem, sending emails with thunderbird. I established an account in thunderbird with imap ssl/tls connection which works finde, and a starttls smtp connection on port 25 for the outgoing mail server.

If I try to send an email with thunderbird I get an error: 5.7.1 Relay access denied

this is my mail.log

Sep  7 16:10:07 postfix/smtpd[6153]: connect from[]
Sep  7 16:10:08 postfix/smtpd[6153]: NOQUEUE: reject: RCPT from[]: 554 5.7.1 <>: Relay access denie$
Sep  7 16:10:10 postfix/smtpd[6153]: disconnect from[]

and this my /etc/postfix/main.conf

# TLS parameters
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

virtual_mailbox_domains =,
virtual_mailbox_maps = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_transport = lmtp:
myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4

I don't know what to do, because actually sending mails to internal and external addresses works with the webaccess.

Perhaps somebody can help me?

share|improve this question
Your log is truncated. Please provide the entire log message. – adaptr Sep 8 '12 at 14:26
up vote 1 down vote accepted

I suppose you like to set up SMTP authentication on your mail server, but your Postfix configuration does not show any authentication configuration for clients. You could do this using SASL against the Zarafa-gateway (IMAP) like described here. Then configure Postfix to use your SASL (Cyrus for example) and 'trust' authenticated clients. Read more about that in the Postfix SASL Howto (part 'Mail relay authorization' in particular).

This way, all IMAP enabled users in Zarafa will have authorized SMTP relay access on your MTA.

share|improve this answer
thank you, your first link helped me very well – Sven Jung Sep 15 '12 at 14:01

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.