nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Relay Access Denied In Postfix

This is a discussion on Relay Access Denied In Postfix within the Mail Servers forums, part of the Mastering Servers category; Hi I have a mail server use postfix, Mysql, Courrier ... I send mail local and by webmail is Ok ...


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Linux answers from nixCraft.


Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-08-2009, 03:15 PM
Junior Member
User
 
Join Date: Jul 2009
OS: Debian
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
eric is on a distinguished road
Default Relay Access Denied In Postfix

Hi
I have a mail server use postfix, Mysql, Courrier ...
I send mail local and by webmail is Ok But send mail by outlook express over internet to others domains then errors " The message could not be sent because one of the recipients was rejected by the server. xxx Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79"
Please help fix this problem !
thanks
Reply With Quote
  #2 (permalink)  
Old 20-08-2009, 03:52 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

By default Postfix blocks all message relaying over the Internet to avoid abuse (also known as an open relay). The most secure way to give access to MUA users is to configure SMTP auth so that remote client can send email. See Postfix SASL Howto

Also see - http://www.postfix.org/SMTPD_ACCESS_README.html
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 21-08-2009, 02:32 PM
Junior Member
User
 
Join Date: Jul 2009
OS: Debian
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
eric is on a distinguished road
Default

This is my file main.cf.
# 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 (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 = my.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = my.example.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/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,
reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
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_domai$
#smtpd_tls_auth_only = yes

please show me how to fix this problem !

thanks
Reply With Quote
  #4 (permalink)  
Old 20-10-2009, 07:15 PM
Junior Member
User
 
Join Date: Oct 2009
OS: FreeBSD
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Rootong is on a distinguished road
Default

You need show us an example. Just for one simple user. It's probably related to your authentication process. Postfix cannot fetch the user information by using the configs here.
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf

Then, the case happens.
Reply With Quote
Reply

Tags
postfix relay configuration , postfix sasl , postfix sasl authentication , postfix smtp access control , postfix smtp relay


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
About access control in postfix eric Mail Servers 3 24-07-2009 06:39 PM
postfix relay bkai Mail Servers 0 09-08-2008 10:57 PM
Dovecot: Eror message access denied /etc/dovecot.conf kasimani Linux software 4 20-07-2006 10:08 PM
Relay Access Denied Error 554 rbizzell All about FreeBSD/OpenBSD/NetBSD 3 20-07-2006 02:48 AM
get Access Denied ERRDOS -ERRnoaccess from linux into my XP neildave2004 Linux software 1 04-06-2006 04:12 PM


All times are GMT +5.5. The time now is 11:43 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38