LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2006, 10:53 AM   #1
hoeniola
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
sendmail and port 25


hello all, I am a newbie and i have the folloiwn problem with a Redhat 9.0 network i have setup:

I have a box working as the network routers. It has 2 interfaces
one for the local Lan and another to the rest fo the world.
I am running a webserver and an a mail server within the internal network. they both have 192.168.0.x numbers. I am using DNAT to forward packets destined to port 25 and 80 to accept incoming mail and http data respectively. The http part works fine, but for some reason email doesn't get to my email server. iget a response stating the router doesn't like the name of the user.
server doesn't like the username root@mydomain.com.
The dnat table: iptables -A -p tcp -d myext_int --dport 25 -j DNAT 192.168.0.x.
I don't know what is going on here...HELP
 
Old 01-16-2006, 03:31 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 01-16-2006, 10:06 PM   #3
shaunw
Member
 
Registered: Dec 2005
Posts: 77

Rep: Reputation: 15
Smile external email

I take it that you are trying to get sendmail to send external
emails through an external smtp account such as joe@bloggs.com.
Email servers will often reject emails if they are sent through
an account if the from field is something like wwrun@linux
because this doesn't match with the mailbox logon details.
You need to set up masquerading so that all external emails
are sent as though they are from joe@bloggs.com.
 
Old 01-17-2006, 08:45 AM   #4
hoeniola
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
masquerading

I have setup masquerading in sendmail.mc and used the make -C /etc/mail command to recompile it. I am sending mail from mydomain. My setup is as such:

server.mydomain.com :Router web address

mail.mydomain.com :mail server address (same ip address but mail traffice DNAT'ed to internal mailserver)

I am able to send mail from my domain, but mail sent from yahoo for example doesn't get to my mail server. Does sendmail need to be activated on the router computer as well? It seems port 25 is off when dsnedmail is turned off.

error recieved:
550 5.7.1 <hoeniola@mydomain.net>... Relaying denied
 
  


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
sendmail port 25 gigi Linux - Security 2 02-16-2005 05:54 PM
Sendmail settings. Will sendmail always answer "helo". (and tracing blocked port 25) Bjorkli Linux - Networking 5 05-24-2004 03:13 AM
Using sendmail through port 80? registering Programming 7 11-11-2003 10:31 AM
sendmail telnet port frieza Linux - Networking 2 03-06-2002 04:26 PM
Sendmail Port other than 25 DD2 Linux - Networking 1 01-23-2002 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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