Mailinglist Archive: opensuse (3531 mails)

< Previous Next >
Re: [opensuse] Sending mail via my ISP relay using sendmail
  • From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 05 Jan 2007 22:20:50 +0100
  • Message-id: <459EC132.4000606@xxxxxxxxxxxxxxxxxxxxxxx>
Paul Abrahams wrote:
On Friday 05 January 2007 3:48 pm, Sandy Drobic wrote:

Here's your problem.

From "man sendmail":

-F full_name
Set the sender full name. This overrides the NAME environment
variable, and is used only with messages that have no From: mesâ
sage header.

-f sender
Set the envelope sender address. This is the address where
delivery problems are sent to. With Postfix versions before 2.1,
the Errors-To: message header overrides the error return

You need to set the envelope address.

sendmail -f abrahams@xxxxxxx abrahams@xxxxxxx

Thanks much, Sandy. That was the key -- but I'm not quite there yet. The lines:

suillus:~ # sendmail -f abrahams@xxxxxxx -F abrahams@xxxxxxx abrahams@xxxxxxx

caused me to receive the following message:

From: "abrahams@xxxxxxx" <abrahams@xxxxxxx>
To: undisclosed-recipients:;

So I'm getting mail at last -- but the "from" and "to" aren't there.

Of course not, where should they have come from? (^-^)
The full smtp dialogue would look like this:

> client
server response
# comment from me (^-^)
> telnet 25
Connected to
Escape character is '^]'.
220 - Maillennium ESMTP/MULTIBOX rwcrmhc11 #9

> ehlo
250-SIZE 15728640
250-VERS V05.20c++
250 XMVP 2

> auth plain dGVzdHVzZXIAdGVzdHVzZXIAdGVzdHBhc3M=

235 2.0.0 Authentication successful

> mail from:<abrahams@xxxxxxx>

250 2.1.0 Ok

# Up to here we transmitted the smtp envelope.
# This is NOT what you see in your mail!!


354 End data with <CR><LF>.<CR><LF>

# This is the mail you actually see in your mailreader
# Part 1 is the mail header
# Part 2 is the body of the mail

Subject: Testmail for relay
From: Paul Abrahams <abrahams@xxxxxxx>
To: Paul Abrahams <abrahams@xxxxxxx>
Date: Fri, 5 Jan 2007 21:12:49 +0100
Message-Id: <200701052212.221414.abrahams@xxxxxxx>

# empty line above separates the header from the body
# The "From:" header line above is set with option "-F" on the
# command line


here's the testmail!


250 2.0.0 Ok: queued as 606753F328

> quit

250 2.1.5 Ok

That is how the server sees the SMTP submission of a mail.
In your example you haven't set the header lines from: and to, so the Postfix daemon "cleanup" inserted the necessary headers. If no from: header is set cleanup will use the smtp envelope address as from: header, if no to: header is set, Postfix will use "undisclosed recipients".

As you can see the addresses in the mail header are not very reliable. (^-^)

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >