Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-06-2003, 04:46 AM   #1
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Rep: Reputation: 15
Portfw and Sendmail

I am having relay problem with sendmail.
Search the web but did not find anything else that I can try.

Here is my setup: (Slackware 9.0 kernel 2.4.20)

(WAN IP 1)---> fw( -->(portfw WAN IP 2 to) --->

Portforwarding is okay, I can see the packets coming in to sendmail server.

However, my sendmail is rejecting it.
Here is my /etc/maillog

Apr 6 17:00:50 t1 sm-mta[1275]: h3690nW2001275: ruleset=check_rcpt,
arg1=<>, relay=[], reject=550 5.7.1
<>... Relaying denied. IP name lookup failed
Apr 6 17:00:50 t1 sm-mta[1275]: h3690nW2001275: from=<>,
size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[]

How do I make it to reflect the original IP instead of my fw IP.
On my fw, I have my masq on for the local IP.

Anyone have any sugesstion on what I should try?
Tried the smart host in
Put in relay-domains and local-host-names.

Last edited by Manuel-H; 04-06-2003 at 04:56 AM.
Old 04-06-2003, 08:36 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Why not just set sendmail to accept mail from that IP?
Old 04-06-2003, 08:52 AM   #3
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Original Poster
Rep: Reputation: 15
Wouldn't it be then a open relay to everyone?

What I would need is to translate the internet IP from the sender to the local IP and then translate it back to the internet IP when it's about to sent out. NAT? I already have MASQ on the machine.
Old 04-06-2003, 10:42 AM   #4
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
It really seems to me it is a sendmail configuration problem, not iptables. I would put the hostname your sendmail server knows by in the local-host-names file, and in LocalIP(FEATURE(`access_db') in the You might try the following sites for more information:


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help PORTFW is giving me a headache. cenci Linux - Networking 1 02-17-2003 06:08 AM
issues ipmasqadm portfw Ratclaws Linux - Networking 1 06-27-2002 09:51 AM
ipchains & portfw PcHammer Linux - Networking 0 03-20-2002 04:09 AM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM
Issues with portfw optize Linux - Networking 1 01-12-2002 03:01 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration