LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2006, 03:19 PM   #1
cozyk1515
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
HELP! POSTFIX Relay access denied


I am very new to POSTFIX- I work for an ISP - I have customer who needs us to catch email for him when his server goes off line a few min every hour. However, I always get a 550 Error on DNS Reports when I try and check with test@Xdomain.com - The MX records are correct it does notice the other entry which is mail.mydomain.com

I have read everything about RELAYING for the domain however - some places have me going creating relay_domains, some add under access - some have me adding info to my main.cf

I am so confused at this point. All of the correct information is in mynetworks **this is the one thing I do know.

I think I am looking for stepby step instructions that I can actually understand- If you need more info please let me know

DNS RECORDS
mail.Xdomain.com.
mail.mydomain.com.

mail IN A XDOMAIN-IPADDRESS

Sorry I don't really have a clue.

Thanks
Gabrielle
 
Old 07-20-2006, 06:06 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
If I understand your question, you want to act as a backup MX for xdomain.com.

The DNS records for xdomain.com should contain at least two MX records similar to this:
Code:
xdomain.com.   8172    IN      MX       5 smtp.xdomain.com.
xdomain.com.   8172    IN      MX      10 smtp.isp.com.
Notice that the higher-numbered record points to the backup server. This will cause any mail destined for xdomain.com to go to smtp.isp.com in the event that smtp.xdomain.com is down.

There's not much that needs to be done on the ISP's postfix server to act as a backup for xdomain.com.

In main.cf:
Code:
relay_domains = xdomain.com
relay_recipient_maps = hash:/etc/postfix/relay_recipients
The first line makes tells postfix to accept mail for xdomain.com, but to hold on to it. Postfix will do an MX lookup on xdomain.com and deliver the mail to smtp.xdomain.com when it becomes available.

The second line defines all the valid recipients for xdomain.com (which avoids accepting mail for nonexist usernames, i.e. avoids spam).

/etc/postfix/relay_recipients might look something like this:
Code:
postmaster@xdomain.com         dummy
webmaster@xdomain.com          dummy
abuse@xdomain.com              dummy
user1@xdomain.com              dummy
user2@xdomain.com              dummy
Hash tables require a value, so we put "dummy". In this case, the value is not used.

Finally, we build the .db file and reload postfix:
Code:
postmap hash:/etc/postfix/relay_recipients
postfix reload

Last edited by Berhanie; 07-20-2006 at 06:16 PM.
 
Old 07-21-2006, 07:15 AM   #3
cozyk1515
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
just a few more questions

I was wondering if I could

Main.cf
relay_domains = /etc/postfix/relaydomains
Just wondering because if I have several domains that I am relaying for.

Also do I need to know all of the email address' for xdomain.com in the relay_recipients?

Thanks
Gabrielle
 
Old 07-21-2006, 08:56 AM   #4
cozyk1515
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks So Much

Thanks I got it fixed the way I posted above worked! Thank you so much!!!
Gabrielle
 
  


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
Postfix Relay Access Denied dwpondscum Linux - Networking 2 09-20-2007 04:37 AM
Postfix - Relay Access Denied Issues clickster Linux - Software 0 10-12-2005 02:06 PM
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
postfix: Relay access denied SolidSnake Linux - Networking 4 02-20-2004 09:05 PM


All times are GMT -5. The time now is 07:32 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 Google+: linuxquestions
Open Source Consulting | Domain Registration