LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-10-2010, 12:58 PM   #1
lolascharlotte
LQ Newbie
 
Registered: Feb 2010
Location: Charlotte, NC
Distribution: Suse 11.2
Posts: 2

Rep: Reputation: 0
Postfix relay denied.


My postfix server will not allow me to send mail except if I am on the server it self.

My postfix conf 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
mynetworks = 255.255.255.0/24, 127.0.0.0/8
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 am trying to send mail from a local network windows machine. I do not know if it matters that my linux server is in a dmz zone with a static ip, and I am trying to send from the local private network. The error I now receive is..

<brandon.lee.caudle@gmail.com> receipant address rejected. Relay access denied.

Any help is appreciated.
 
Old 02-10-2010, 01:07 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Have you used auth'd yourself? Have you tried a manual connection to test and see if everything is working?

http://qmail.jms1.net/test-auth.shtml

Will show you how to test your smtp auth and generate the necessary information at command line.
 
Old 02-10-2010, 01:42 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
<brandon.lee.caudle@gmail.com> receipant address rejected. Relay access denied.
When posting log messages, it's best to cut and paste the entire message, preferably in a [code] block.

The mynetworks parameter contains networks that postfix will relay mail from. Yours looks strange. Fixing it is the fastest way of solving your problem. See here for basic postfix configuration.

As rweaver mentions, you can also use smtp auth, but that might be overkill in your case, or something you may want to read about in the future as you become more familiar with smtp and postfix.

Last edited by Berhanie; 02-10-2010 at 01:48 PM.
 
Old 02-10-2010, 02:09 PM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quick caveat for the previous posters information, he is absolutely correct putting your ip "range" in mynetworks is the fastest fix, but it's only an acceptable fix if you have a static or nearly static address. If you have to broadly include a class B or A to keep your ip address in the mynetworks list you're likely to have spam relayed off your server.
 
Old 02-10-2010, 02:31 PM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
As per OP's statement, the network in question is presumably RFC-1918:
Quote:
I do not know if it matters that my linux server is in a dmz zone with a static ip, and I am trying to send from the local private network.
 
Old 02-10-2010, 02:48 PM   #6
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
*cough* missed that line in original message
 
  


Reply



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
Postfix relay denied. lolascharlotte Linux - Server 1 02-09-2010 06:20 AM
Postfix: relay denied from a different subnet _MD_ Linux - Newbie 28 06-18-2007 09:57 AM
postfix: relay access denied cope Linux - Server 1 05-10-2007 01:35 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
Postfix and Relay access denied jamiguel77 Linux - Software 3 03-12-2005 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration