LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2009, 08:57 PM   #1
XLA187
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
Odd Postfix Issue


I can send mail from SquirrelMail via the local IP on the box of course, so Postfix is pulling mynetworks, but I also have a remote IP set in mynetworks, and it's not paying any attention to that one. So I can only send mail from SquirrleMail, but no Thunderbird via a remote static IP.

Can anyone tell me what I screwed up in my config?

Error: postfix "Relay access denied"

Config File:

command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, teravox.net,mail.teravox.net
unknown_local_recipient_reject_code = 550
mynetworks_style = class

#the first IP is the remote IP I need to send mail from

mynetworks = 66.63.178.226/28, 127.0.0.0/8, 67.215.245.72/29, 172.16.45.192/26

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
myorigin = teravox.net
broken_sasl_auth_clients = yes
smtpd_delay_reject = no
myhostname = mail.teravox.net
mynetworks = teravox.net
allow_untrusted_routing = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated permit_inet_interfaces check_relay_domains
 
Old 05-25-2009, 09:08 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Mynetworks_style has no effect if you specify mynetworks, so comment that out for a start.

Can you please show the log messages of the error.
 
Old 05-25-2009, 09:17 PM   #3
XLA187
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Sure Asterisk added to protect the privacy of the receiver, but otherwise this is exactly what I get.

May 25 19:16:01 www1 postfix/smtpd[20302]: connect from unknown[66.63.178.226]
May 25 19:16:02 www1 postfix/smtpd[20302]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
May 25 19:16:02 www1 postfix/smtpd[20302]: NOQUEUE: reject: RCPT from unknown[66.63.178.226]: 554 5.7.1 <kyle@*****consulting.biz>: Recipient address rejected: Relay access denied; from=<tech@teravox.net> to=<kyle@*****consulting.biz> proto=ESMTP helo=<[67.215.245.78]>
May 25 19:16:03 www1 postfix/smtpd[20302]: disconnect from unknown[66.63.178.226]
 
Old 05-25-2009, 09:43 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Looks OK (but obviously isn't), but an you try

mynetworks = 66.63.178.226, 127.0.0.0/8, 67.215.245.72/29, 172.16.45.192/26

ie without the netmask.

Also, fix your recipient restrictions as per the log you posted to avoid the warning.

Did you just move an old main.cf to a new box?
 
Old 05-25-2009, 09:47 PM   #5
XLA187
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I made those changes, and got the same error, minus the warning to change the variable. Where else could I look for a solution to this issue?

And no, this is a fairly fresh install, why do you ask?

Last edited by XLA187; 05-25-2009 at 09:48 PM.
 
Old 05-25-2009, 09:48 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Hang on - you have a second mynetworks line there

Code:
mynetworks = teravox.net
Edit - looks like we're posting on top of each other here.

Last edited by billymayday; 05-25-2009 at 09:50 PM.
 
Old 05-25-2009, 09:49 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by XLA187 View Post
I made those changes, and got the same error, minus the warning to change the variable. Where else could I look for a solution to this issue?

And no, this is a fairly fresh install, why do you ask?
Because you have a depreciated option in your config
 
Old 05-25-2009, 09:54 PM   #8
XLA187
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Well now I feel like a retard, but that was it. Works fine now. Much appreciated.
 
Old 05-25-2009, 09:59 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
For future reference, as look at "postconf -n" would have shown this up quite nicely.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd problem with Postfix and reject_unknown_client option jimwillsher Linux - Server 5 11-13-2008 04:40 AM
Odd Network Issue RobertNikic Linux - Networking 5 06-25-2008 12:36 PM
Odd Dovecot / Postfix error punker22 Red Hat 1 10-29-2007 07:50 PM
An Odd network issue hacker supreme Linux - Networking 6 06-05-2007 09:43 AM
odd mandriva issue goofusbrain Linux - Networking 1 11-13-2005 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 AM.

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