LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-18-2009, 08:46 AM   #1
muanro
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
mail relaying - sender problem


Hello,

I seem to be stuck in this situation for quite some time and I would appreciat a bit of help.

One of the users on my server (user@server.domain1.com) wants to send mails to his address on user.name@domain3.com. This cannot happen directly, and I have added a relay server. When the user sends an email it passes from the relay server to another relay server. Only this second one doesn't pass the mail further because it only accepts emails coming in from @domain2.com. Now... if I masquerade the sender so that sent emails come from user@domain2.com, they aren't even sent out, I can still see them with "mailq".

@server.domain1.com relay_one relay_two(@domain2.com) @domain3.com

What can I do?

Thanks for your answers
 
Old 08-18-2009, 10:11 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,655

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by muanro View Post
Hello,

I seem to be stuck in this situation for quite some time and I would appreciat a bit of help.

One of the users on my server (user@server.domain1.com) wants to send mails to his address on user.name@domain3.com. This cannot happen directly, and I have added a relay server. When the user sends an email it passes from the relay server to another relay server. Only this second one doesn't pass the mail further because it only accepts emails coming in from @domain2.com. Now... if I masquerade the sender so that sent emails come from user@domain2.com, they aren't even sent out, I can still see them with "mailq".

@server.domain1.com relay_one relay_two(@domain2.com) @domain3.com

What can I do?

Thanks for your answers
Modify the second relay server to accept mail???
 
Old 08-19-2009, 01:24 AM   #3
muanro
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
TB0ne, the email doesn't even leave the "outbox" right now. Please be more specific IF you want to help.
 
Old 08-19-2009, 09:13 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,655

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by muanro View Post
TB0ne, the email doesn't even leave the "outbox" right now. Please be more specific IF you want to help.
Gave you the answer, but you didn't get it. IF you want to read it:

You said:
Quote:
Only this second one doesn't pass the mail further because it only accepts emails coming in from @domain2.com
So, as I said..."modify the second relay server, to accept mail". To further clarify: modify the rules on your second relay server, to accept the incoming mail from wherever you're sending it from now. Masquerading doesn't always work correctly. Modifying the allow-relay-from information, will let the mail get relayed along, rather than dying on that box.

Also, it might help if you told us what version/distro of Linux you're using, and what mail system (sendmail? Postfix?), and other bits of useful information. Based on your initial description and question, you got an answer anyway, then decided you didn't like it. We volunteer our time here...if you feel like you're not getting what you need, feel free to get a commercially-supported version of Linux, and pay them for support.

Last edited by TB0ne; 08-19-2009 at 09:16 AM.
 
Old 08-20-2009, 04:10 AM   #5
muanro
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
sendmail
Red Hat Enterprise Linux Server release 5.2 (Tikanga)

Proxy servers not really under my support, thought there was some way to do changes only on my server.

Thanks for the help. Sorry that I need more than a sentence to understant what people are talking about and that I know what punctuation signs mean"???"
 
  


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
Mail relaying problem, cannout mail from outside network using outlook andrewfeberwee Linux - Newbie 4 03-30-2009 07:12 PM
Mail problem-Relaying denied.Proper authentication required.Error Number 0x800CCC79 mladja04 Linux - Server 1 11-24-2008 02:54 PM
mail problem (Relaying denied) ice99 Linux - Networking 3 01-21-2006 11:29 AM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM
Redhat 9 Mail Relaying Problem clintonm9 Linux - Software 2 06-23-2003 02:54 PM

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

All times are GMT -5. The time now is 06:18 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