incorrect domain in from line

incorrect domain in from line

am 15.09.2005 14:51:45 von Jacek Olbrys

Hi,

The problem is that all outgoing email have incomplete domain name in "from"
line. Instead of user@mydomain.net, the address is: user@mydomain
Some receipients mail servers reject the mail from invalid domain, some adds
their own domain to the addres and present receipients with something like:
user@mydomain.receipientdomain.com
I get lost, please help!

Regards
Jacek

Re: incorrect domain in from line

am 15.09.2005 15:06:53 von Shion

Jacek Olbrys wrote:
> Hi,
>
> The problem is that all outgoing email have incomplete domain name in "from"
> line. Instead of user@mydomain.net, the address is: user@mydomain
> Some receipients mail servers reject the mail from invalid domain, some adds
> their own domain to the addres and present receipients with something like:
> user@mydomain.receipientdomain.com

Seems like you have set the domain name to just to mydomain instead for
mydomain.net in your /etc/domainname.


//Aho

Re: incorrect domain in from line

am 15.09.2005 15:46:02 von Jacek Olbrys

>> The problem is that all outgoing email have incomplete domain name in
>> "from" line. Instead of user@mydomain.net, the address is: user@mydomain
> Seems like you have set the domain name to just to mydomain instead for
> mydomain.net in your /etc/domainname.

thank, but it is not that. check-hostname returns correct, fully qualified
domain name.

Regards
Jacek

Re: incorrect domain in from line

am 15.09.2005 15:57:07 von Andrzej Adam Filip

"Jacek Olbrys" writes:

> The problem is that all outgoing email have incomplete domain name in "from"
> line. Instead of user@mydomain.net, the address is: user@mydomain
> Some receipients mail servers reject the mail from invalid domain, some adds
> their own domain to the addres and present receipients with something like:
> user@mydomain.receipientdomain.com
> I get lost, please help!

Could you post results produced by test given below:
1) "this hostname" used by sendmail.cf
echo '$j' | sendmail -bt -Am
[ expected: mydomain.net ]
2) "this hostname" used by submit.cf
echo '$j' | sendmail -bt -Ac
[ expected: mydomain.net ]
3) "Masquerade as" defined in sendmail.cf
echo '$M' | sendmail -bt -Am
[ expected: Undefined ]

--
Andrzej [en:Andrew] Adam Filip anfi@priv.onet.pl anfi@xl.wp.pl
http://www.sendmail.org/faq/ http://anfi.homeunix.net/sendmail/

Re: incorrect domain in from line

am 15.09.2005 16:36:31 von Jacek Olbrys

>
> Could you post results produced by test given below:
> 1) "this hostname" used by sendmail.cf
> echo '$j' | sendmail -bt -Am
> [ expected: mydomain.net ]
> 2) "this hostname" used by submit.cf
> echo '$j' | sendmail -bt -Ac
> [ expected: mydomain.net ]

-A is not recognized parameter on my sendmail (8.11.7 on Solaris 8)
The result of echo '$j' | sendmail -bt is:
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter


> mydomian.net

> 3) "Masquerade as" defined in sendmail.cf
> echo '$M' | sendmail -bt -Am
> [ expected: Undefined ]

Nothing, but I also tried with masquerade before.

Regards, dzieki
Jacek

Re: incorrect domain in from line

am 15.09.2005 16:53:15 von Andrzej Adam Filip

"Jacek Olbrys" writes:

> >
> > Could you post results produced by test given below:
> > 1) "this hostname" used by sendmail.cf
> > echo '$j' | sendmail -bt -Am
> > [ expected: mydomain.net ]
> > 2) "this hostname" used by submit.cf
> > echo '$j' | sendmail -bt -Ac
> > [ expected: mydomain.net ]
>
> -A is not recognized parameter on my sendmail (8.11.7 on Solaris 8)

I have (silently) assumed you use sendmail-8.12+

> The result of echo '$j' | sendmail -bt is:
> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
> Enter


> > mydomian.net
>
> > 3) "Masquerade as" defined in sendmail.cf
> > echo '$M' | sendmail -bt -Am
> > [ expected: Undefined ]
>
> Nothing, but I also tried with masquerade before.

What is reported by the command below?

(echo /try flags es; echo /try esmtp user) | sendmail -bt

If it reports "wrong" address (without trailing .net) the take a look
(or post) results of the above command with -d21.12 debuging switch
added to sendmail command line options.

--
Andrzej [en:Andrew] Adam Filip anfi@priv.onet.pl anfi@xl.wp.pl
http://www.sendmail.org/faq/ http://anfi.homeunix.net/sendmail/

Re: incorrect domain in from line

am 15.09.2005 17:13:00 von Jacek Olbrys

> What is reported by the command below?
>
> (echo /try flags es; echo /try esmtp user) | sendmail -bt
>
Well - seems to be OK:
final returns: user @ mydomain . net
Rcode = 0, addr = user@mydomain.net

Now I am really twisted :>

Regards
Jacek

Re: incorrect domain in from line

am 15.09.2005 17:24:03 von Andrzej Adam Filip

"Jacek Olbrys" writes:

> > What is reported by the command below?
> >
> > (echo /try flags es; echo /try esmtp user) | sendmail -bt
> >
> Well - seems to be OK:
> final returns: user @ mydomain . net
> Rcode = 0, addr = user@mydomain.net
>
> Now I am really twisted :>

Try the test below (it will produce a lot of output):

(echo to: x@example.com; echo) | sendmail -Am -t -d21.12 > trace-file

[Your pre 8.12 sendmail does not require -Am, I included it only for
"future readers"]

--
Andrzej [en:Andrew] Adam Filip anfi@priv.onet.pl anfi@xl.wp.pl
http://www.sendmail.org/faq/ http://anfi.homeunix.net/sendmail/

Re: incorrect domain in from line

am 15.09.2005 17:48:23 von Jacek Olbrys

> Try the test below (it will produce a lot of output):
>
> (echo to: x@example.com; echo) | sendmail -Am -t -d21.12 > trace-file
>

This time the rules produce:
1. my user name only (without domain)
2. correct receipient address: x@example.com

What part of the file may be useful for further analisis?

Regards
Jacek

Re: incorrect domain in from line

am 15.09.2005 17:56:33 von Andrzej Adam Filip

"Jacek Olbrys" writes:

> > Try the test below (it will produce a lot of output):
> >
> > (echo to: x@example.com; echo) | sendmail -Am -t -d21.12 > trace-file
> >
>
> This time the rules produce:
> 1. my user name only (without domain)
> 2. correct receipient address: x@example.com
>
> What part of the file may be useful for further analisis?

Możesz przesłać mi cały .

--
Andrzej [en:Andrew] Adam Filip anfi@priv.onet.pl anfi@xl.wp.pl
http://www.sendmail.org/faq/ http://anfi.homeunix.net/sendmail/