LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-09-2010, 12:29 AM   #1
lolascharlotte
LQ Newbie
 
Registered: Feb 2010
Location: Charlotte, NC
Distribution: Suse 11.2
Posts: 2

Rep: Reputation: 0
Postfix relay denied.


I am running Postfix 2.6.1 on Suse 11.2, and am receiving an error message on my windows machine saying "Recipient address rejected: Relay access denied." If I login to my email on the local machine or via squirrelmail I have no problem sending mail. The output of postconf -n is as follows:


server:~ # postconf -n
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports =
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
home_mailbox = Maildir/
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_protocols = all
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 0
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain, lolascharlotte.com, smtp.lolascharlotte.com, pop3.lolascharlotte.com, mail.lolascharlotte.com, lolasonbrevard.com, smtp.lolasonbrevard.com, pop3.lolasonbrevard.com, mail.lolasonbrevard.com, smtp.mattoonmanor.com, www.mattoonmanor.com, mattoonmanor.com, webmail.mattoonmanor.com, imap.mattoonmanor.com, pop.mattoonmanor.com, pop3.mattoonmanor.com, smtp.easternequityllc.com, pop.easternequityllc.com, easternequityllc.com, www.easternequityllc.com, pop3.easternequityllc.com, imap.easternequityllc.com, smtp.fatnancyco.com, fatnancyco.com, www.fatnancyco.com, imap.fatnancyco.com, pop3.fatnancyco.com, pop.fatnancyco.com
myhostname = smtp.lolascharlotte.com
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relay_domains = $mydestination, hash:/etc/postfix/relay
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated check_relay_domains
smtpd_sender_restrictions = permit
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual

I only wish to permit relay from my domain names only.

Thanks,

Brandon
 
Old 02-09-2010, 07:20 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 2,779

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
In postfix, the 'mynetworks' parameter defines your networks which will be allowed to relay mail through the server, try :

Code:
postconf -e "mynetworks = xxx.xxx.xxx.xxx/24, 127.0.0.0/8"
service postfix reload
Replace the xxx's with your lan subnet and correct the subnet mask and you should be good to go

cheers
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix-Relay access denied i_nomad Linux - Newbie 14 05-01-2008 07:01 PM
Postfix: relay denied from a different subnet _MD_ Linux - Newbie 28 06-18-2007 10:57 AM
postfix: relay access denied cope Linux - Server 1 05-10-2007 02:35 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


All times are GMT -5. The time now is 08:57 AM.

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