Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mail sent from local machine shows undisclosed-recipients:;

633 views
Skip to first unread message

Tek Bahadur Limbu

unread,
Jun 17, 2007, 2:17:21 PM6/17/07
to
Hi All,

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...

Duane Hill

unread,
Jun 17, 2007, 2:59:33 PM6/17/07
to

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...
>

mouss

unread,
Jun 17, 2007, 3:08:35 PM6/17/07
to
Tek Bahadur Limbu wrote:
> Hi All,
>
> 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
> .
>
you need to read RFC2821...

> 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...

Tek Bahadur Limbu

unread,
Jun 17, 2007, 4:36:27 PM6/17/07
to

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...
>>
>
>
>

Tek Bahadur Limbu

unread,
Jun 17, 2007, 4:38:40 PM6/17/07
to

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...

>
>
>
>
>
>

0 new messages