Local user, but sendmail trying to relay, why?

This is a discussion on Local user, but sendmail trying to relay, why? within the SendMail forums in Other Technologies category; A server in my lan, AK, is trying to send mail to my desktop, DD, via its IP address: dale@[192.168.7.35]. "dale" is a local user on the desktop DD. However, sendmail on DD is rejecting the mail with the message "Relaying denied". Here are the relevant maillog messages, wrapped for reading convenience: Sep 2 23:11:21 DD sendmail[2591]: m834BKur002591: ruleset=check_rcpt, arg1=<dale@[192.168.7.35]>, relay=AK [192.168.7.201], reject=550 5.7.1 <dale@[192.168.7.35]>... Relaying denied Sep 2 23:11:21 DD sendmail[2591]: m834BKur002591: from=<root @ AK.EckhardtTrading.com>, size=582, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=AK [192.168.7.201] DD's sendmail config is a stock Fedora 8 config except that I modified sendmail.mc to listen on ...

Go Back   Application Development Forum > Other Technologies > SendMail

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-03-2008, 07:31 AM
Dale Dellutri
Guest
 
Default Local user, but sendmail trying to relay, why?

A server in my lan, AK, is trying to send mail to my
desktop, DD, via its IP address: dale@[192.168.7.35].
"dale" is a local user on the desktop DD. However,
sendmail on DD is rejecting the mail with the message
"Relaying denied". Here are the relevant maillog messages,
wrapped for reading convenience:

Sep 2 23:11:21 DD sendmail[2591]: m834BKur002591:
ruleset=check_rcpt,
arg1=<dale@[192.168.7.35]>, relay=AK [192.168.7.201],
reject=550 5.7.1 <dale@[192.168.7.35]>... Relaying denied
Sep 2 23:11:21 DD sendmail[2591]: m834BKur002591:
from=<root@AK.EckhardtTrading.com>, size=582, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=AK [192.168.7.201]

DD's sendmail config is a stock Fedora 8 config except
that I modified sendmail.mc to listen on the NIC that
connects DD to the lan, and opened port 25 on the firewall.

Why is sendmail on DD trying to relay for a local user?
Why doesn't it recognize that dale is a local user?
How can I debug this?

I appreciate any help you can give me.

--
Dale Dellutri <ddelQQQlutr@panQQQix.com> (lose the Q's)
Reply With Quote
  #2  
Old 09-03-2008, 12:01 PM
Dale Dellutri
Guest
 
Default Re: Local user, but sendmail trying to relay, why?

On Wed, 3 Sep 2008 11:31:28 +0000 (UTC), Dale Dellutri <ddelQQQlutr@panqqqix.com> wrote:
> A server in my lan, AK, is trying to send mail to my
> desktop, DD, via its IP address: dale@[192.168.7.35].
> "dale" is a local user on the desktop DD. However,
> sendmail on DD is rejecting the mail with the message
> "Relaying denied". Here are the relevant maillog messages,
> wrapped for reading convenience:
>...


I added the following line to /etc/mail/local-host-names, and now
it's working:
[192.168.7.35]

Apparently, sendmail didn't the IP address was local.

--
Dale Dellutri <ddelQQQlutr@panQQQix.com> (lose the Q's)
Reply With Quote
  #3  
Old 09-03-2008, 02:28 PM
Kari Hurtta
Guest
 
Default Re: Local user, but sendmail trying to relay, why?

Dale Dellutri <ddelQQQlutr@panQQQix.com> writes in comp.mail.sendmail:

> On Wed, 3 Sep 2008 11:31:28 +0000 (UTC), Dale Dellutri <ddelQQQlutr@panqqqix.com> wrote:
> > A server in my lan, AK, is trying to send mail to my
> > desktop, DD, via its IP address: dale@[192.168.7.35].
> > "dale" is a local user on the desktop DD. However,
> > sendmail on DD is rejecting the mail with the message
> > "Relaying denied". Here are the relevant maillog messages,
> > wrapped for reading convenience:
> >...

>
> I added the following line to /etc/mail/local-host-names, and now
> it's working:
> [192.168.7.35]
>
> Apparently, sendmail didn't the IP address was local.


Normally sendmail gets IP addresses of interfaces.
But may be that there is some limitions. Try:

sendmail -d0.4 -bt < /dev/null

> --
> Dale Dellutri <ddelQQQlutr@panQQQix.com> (lose the Q's)


/ Kari Hurtta
Reply With Quote
  #4  
Old 09-04-2008, 12:55 PM
Andrzej Adam Filip
Guest
 
Default Re: Local user, but sendmail trying to relay, why?

Dale Dellutri <ddelQQQlutr@panQQQix.com> wrote:

> On Wed, 3 Sep 2008 11:31:28 +0000 (UTC), Dale Dellutri <ddelQQQlutr@panqqqix.com> wrote:
>> A server in my lan, AK, is trying to send mail to my
>> desktop, DD, via its IP address: dale@[192.168.7.35].
>> "dale" is a local user on the desktop DD. However,
>> sendmail on DD is rejecting the mail with the message
>> "Relaying denied". Here are the relevant maillog messages,
>> wrapped for reading convenience:
>>...

>
> I added the following line to /etc/mail/local-host-names, and now
> it's working:
> [192.168.7.35]
>
> Apparently, sendmail didn't the IP address was local.


Sendmail should add it "auto-magically" unless:
a) it is a dynamic interface
(e.g. ppp dialup started after sendmail daemon statup)
b) DontProbeInterfaces is used in your /etc/mail/sendmail.cf file

URL(s):
http://www.sendmail.org/m4/tweaking_...OBE_INTERFACES

--
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl
Never volunteer for anything.
-- Lackland
Reply With Quote
  #5  
Old 09-08-2008, 12:54 AM
Kari Hurtta
Guest
 
Default Re: Local user, but sendmail trying to relay, why?

Andrzej Adam Filip <anfi@onet.eu> writes in comp.mail.sendmail:

> Dale Dellutri <ddelQQQlutr@panQQQix.com> wrote:
>
> > On Wed, 3 Sep 2008 11:31:28 +0000 (UTC), Dale Dellutri <ddelQQQlutr@panqqqix.com> wrote:
> >> A server in my lan, AK, is trying to send mail to my
> >> desktop, DD, via its IP address: dale@[192.168.7.35].
> >> "dale" is a local user on the desktop DD. However,
> >> sendmail on DD is rejecting the mail with the message
> >> "Relaying denied". Here are the relevant maillog messages,
> >> wrapped for reading convenience:
> >>...

> >
> > I added the following line to /etc/mail/local-host-names, and now
> > it's working:
> > [192.168.7.35]
> >
> > Apparently, sendmail didn't the IP address was local.

>
> Sendmail should add it "auto-magically" unless:
> a) it is a dynamic interface
> (e.g. ppp dialup started after sendmail daemon statup)
> b) DontProbeInterfaces is used in your /etc/mail/sendmail.cf file
>
> URL(s):
> http://www.sendmail.org/m4/tweaking_...OBE_INTERFACES


No,

sendmail does _not_ get all IP addresses on Linux.

Specially, if there is several ip addresses on one interface,
sendmail does not get them all.

Look "ip addr" command.

Basically sendmail gets only addresses, which "ifconfig"
-command is listing.

/ Kari Hurtta
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:42 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.