Koozali.org: home of the SME Server

email headers

John Ritsi

email headers
« on: January 15, 2003, 08:07:54 PM »
Which file is used to modify qmail's headers?  Some ISPs don't accept mail from me:

Eg:
:

Connected to xxx.xxx.x.xx but sender was rejected.

Remote host said: 550 rejected: cannot route to sender

--- Below this line is a copy of the message.

Return-Path:

Received: (qmail 28608 invoked by uid 8); 13 Jan 2003 00:30:23 -0000

Received: from xxxxxx.xxxxx.xxx.xxxxx.xxx (192.168.0.2, claiming to be "xxxxxx.xxxxx.xxxxx.xxx")

      by xxxx.xxxxxxx.xxx with SMTP id smtpdMVK2ka; Tue, 12 Jan 2003 17:36:24 EST

bud

Re: email headers
« Reply #1 on: January 15, 2003, 11:45:43 PM »

John Ritsi

Re: email headers
« Reply #2 on: January 16, 2003, 12:32:50 AM »
Because qmail headers show the name of the workstation and the internal IP address that the email orig. from, I need to know how to change it so that it prints the external IP and the name of the server not the internal workstation.

John Ritsi

Re: email headers
« Reply #3 on: January 16, 2003, 01:43:03 AM »
Let me clarify:

Received: from pc-00071.mydomain.com (192.168.1.71), claiming to be "workstation71" by server.mydomain.com with SMTP ...

I don't want people to see from which IP address I'm sending my mail from (internal information).  I'd like to strip this information or to change it to the ip of my fw/router or mail server. How could I do that with Qmail?

Where is this information held in SME?

Arno

Re: email headers
« Reply #4 on: January 16, 2003, 02:53:35 PM »
Perhaps you should first check your DNS settings. I've had the same problem solved by changing the MX-record to a Hostname instead of an IP-Number.

John Ritsi

Re: email headers
« Reply #5 on: January 16, 2003, 07:28:42 PM »
It is already set (DNS MX records).  I think obtuse-smtpd might be the place to look.

Charlie Brady

Rejected mail (Re: email headers)
« Reply #6 on: January 16, 2003, 07:35:53 PM »
John Ritsi wrote:
>
> Which file is used to modify qmail's headers?  Some ISPs
> don't accept mail from me:
>
> Eg:
> :
>
> Connected to xxx.xxx.x.xx but sender was rejected.
>
> Remote host said: 550 rejected: cannot route to sender
>
>
> --- Below this line is a copy of the message.
>
> Return-Path:

I believe what is happening here is that their server is verifying the return address before accepting mail. The mail claims to come from SERVER@mydomain.com, but mail can't be sent to SERVER@mydomain.com, presumably because mydomain.com doesn't exist or doesn't have an MX record.

This doesn't have a lot to do with qmail - sender address is usually set by the sender's mail program.

Charlie