Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-30-2011, 08:23 AM   #1
LQ Newbie
Registered: Jun 2009
Location: Ishoej - Outside Copenhagen, Denmark
Distribution: Debian Lenny and Squeeze
Posts: 17

Rep: Reputation: 0
Troubles with postfix and Squirrelmail but not Outlook- relay access denied


I have been trying find a solution to this problem for some time now, but seem to get more and more confused.
If I want to send an e-mail using Outlook to an outside e-mail there is no problem, but once I try to do the same using Squirrelmail I get the error : Relay access denied.

I am using ISPConfig in a multiple server setup.

My looks like this
# See /usr/share/postfix/ 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 (Debian/GNU)
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 = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/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 =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =, localhost, localhost.localdomain
relayhost =
# mynetworks =
mynetworks = [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/, mysql:/etc/postfix/
# virtual_alias_maps = proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
virtual_mailbox_domains = mysql:/etc/postfix/
# virtual_mailbox_domains = proxy:mysql:/etc/postfix/
virtual_mailbox_maps = mysql:/etc/postfix/
# virtual_mailbox_maps = proxy:mysql:/etc/postfix/
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/, reject_unauth_destin$
smtpd_tls_security_level = may
transport_maps = mysql:/etc/postfix/
# transport_maps = proxy:mysql:/etc/postfix/
relay_domains =  mysql:/etc/postfix/
relay_recipient_maps = mysql:/etc/postfix/
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/
# virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = dovecot
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
content_filter = amavis:[]:10024
receive_override_options = no_address_mappings
message_size_limit = 0
inet_protocols = ipv4
Anyone got any ideas to what I have done wrong or missed?
Old 09-30-2011, 09:36 AM   #2
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.0, 14.1, current
Posts: 418

Rep: Reputation: 52
What is the exact error message in your log? Usually with relay access denied you get also the host name who was denied.
You can also compare the successful log (with outlook) with the unsuccessful with squirrelmail.

For example if the relay is denied for localhost it can help you to find out why postfix denies the localhost.

Maybe the squirrelmail is miss-configured. You can check this either with the script (run it) or directly in the config.php file. ( ./squirrelmail/config/ - ./squirrelmail/config/config.php - the location of those files depends on where your web servers document root is)

Post the errors in your mail log. The error logs of your web server may also help (for squirrelmail virtual host).

Last edited by hua; 09-30-2011 at 09:38 AM.
Old 10-01-2011, 03:15 PM   #3
LQ Newbie
Registered: Jun 2009
Location: Ishoej - Outside Copenhagen, Denmark
Distribution: Debian Lenny and Squeeze
Posts: 17

Original Poster
Rep: Reputation: 0

Thanks for the hints.

Found that I had forgot in the to change it to do POP before SMTP - this seems to have solved it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubles with postfix - relay access denied cshelswell Linux - Server 4 03-12-2009 04:17 PM
postfix: relay access denied cope Linux - Server 1 05-10-2007 02:35 AM
HELP! POSTFIX Relay access denied cozyk1515 Linux - Software 3 07-21-2006 09:56 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 08:15 PM
Postfix and Relay access denied jamiguel77 Linux - Software 3 03-12-2005 11:53 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration