I am very new to Postfix and have just installed Postfix 2.4.3 to act as
a mail relay to my SMTP Servers.
However, as part of my testing, when I sent an email typing:
telnet localhost 25
helo localhost
mail from: me@mydomain
rcpt to: me@mydomain
data
subject: testing
Test test test
.
The email does get relayed to my SMTP servers which then does it's spam,
filtering, etc checks.
Finally when I received the email, the "from header" is fine but the "to
header" always displays "undisclosed-recipients:;" instead of me@mydomain.
Is this normal? Can somebody shed some light on this.
Postfix rocks.
Thanking you...
It is normal. You didn't specify a TO: header. I.e.:
telnet localhost 25
...
data
To: <me@mydomain>
Subject: testing
Test test test
.
Postfix will insert undisclosed-recipients:; if no To or CC is specified
after the SMTP DATA command. What Postfix uses for the header can be
controled by a paramenter in main.cf:
http://www.postfix.org/postconf.5.html#undisclosed_recipients_header
> Postfix rocks.
>
>
> Thanking you...
>
> The email does get relayed to my SMTP servers which then does it's
> spam, filtering, etc checks.
>
> Finally when I received the email, the "from header" is fine but the
> "to header" always displays "undisclosed-recipients:;" instead of
> me@mydomain.
>
> Is this normal? Can somebody shed some light on this.
Yes, this is normal. you did not provide a To header (nor a From header).
Try this instead:
# telnet localhost 25
EHLO localhost
MAIL FROM:<me@mydomain>
RCPT TO:<me@mydomain>
DATA
From: Tek Bahadur Limbu <m...@example.com>
To: someone else <m...@example.com>
Subject: testing
Test test test
.
Note that there are no spaces after MAIL FROM: and RCPT TO:, though
{most|many} MTAs won't complain...
Hi Duane,
Thanks alot. The picture is crystal clear to me now. I also understand
that there are alot of manuals and articles that I should have to read.
I want to learn to more about Postfix and grow up with Postfix in the
coming days ahead:)
Thanks once again.
>
>> Postfix rocks.
>>
>>
>> Thanking you...
>>
>
>
>
Hi Mouss,
Wow!
That was one of the finest example that I could ever ask for. I want to
thank you and Duane for your kind help and suggestions.
Thanking you...
>
>
>
>
>
>