From: "motty cruz" on
Hello
If I use the command
# mail -v name(a)domain.com I get the folloing
Mail delivery status report will be mailed to <root>
But then I get MAILER-DAEMON (mail transport unavailable)

Using FreeBSD 7.2
Postfix 2.6.5
And second instance running

Thanks in advance
_ Motty

From: Victor Duchovni on
On Tue, Feb 23, 2010 at 08:52:23AM -0800, motty cruz wrote:

> If I use the command
> # mail -v name(a)domain.com I get the folloing
> Mail delivery status report will be mailed to <root>
> But then I get MAILER-DAEMON (mail transport unavailable)
>
> Using FreeBSD 7.2
> Postfix 2.6.5
> And second instance running
>
> Thanks in advance

http://www.postfix.org/DEBUG_README.html#mail

--
Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment. If you are interested, please drop me a note.

From: "motty cruz" on
Thanks for pointing that out Victor, does not justify that I'm newbie,
please accept my apologies.
I'm in the command prompt of the spam filter I finished building using
FreeBSD 7.2 and Postfix 2.6.5 and I want to send email to myself
motty(a)domain.com so I type the following in the command prompt

Filter # mail -v motty(a)domain.com
Subject: test postfix conf
debug_peer_list = 127.0.0.1

..
EOT
Mail Delivery Status Report will be mailed to <root>.
Filter # mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
A4051B898 1938 Tue Feb 23 09:01:54 MAILER-DAEMON
(mail transport
unavailable)
root(a)domain.com

-- 2 Kbytes in 1 Request.


As you can see the message was sent but debug log was not sent to
root(a)doamin.com
Below is my config file
filter# postconf -n
alias_database = hash:/usr/local/etc/postfix/aliases
alternate_config_directories = /usr/local/etc/postfix-out
anvil_rate_time_unit = 20s
biff = no
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debug_peer_list = domain.com
html_directory = no
in_flow_delay = 1s
local_recipient_maps = hash:/usr/local/etc/postfix/userdb,
hash:/usr/local/etc/postfix/uservirt
local_transport = no local mail delivery
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 50000000
mydestination = domain.com,
myhostname = filter.domain.com
mynetworks = 127.0.0.0/8,
myorigin = domain.com
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_banner = filter.domain.com
smtpd_error_sleep_time = 0
unknown_local_recipient_reject_code = 550
Filter#
Thanks in Advance,
_Motty


-----Original Message-----
From: owner-postfix-users(a)postfix.org
[mailto:owner-postfix-users(a)postfix.org] On Behalf Of Victor Duchovni
Sent: Tuesday, February 23, 2010 9:00 AM
To: postfix-users(a)postfix.org
Subject: Re: Mail Transport Unavailable

On Tue, Feb 23, 2010 at 08:52:23AM -0800, motty cruz wrote:

> If I use the command
> # mail -v name(a)domain.com I get the folloing Mail delivery status
> report will be mailed to <root> But then I get MAILER-DAEMON (mail
> transport unavailable)
>
> Using FreeBSD 7.2
> Postfix 2.6.5
> And second instance running
>
> Thanks in advance

http://www.postfix.org/DEBUG_README.html#mail

--
Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment. If you are interested, please drop me a note.

From: Victor Duchovni on
On Tue, Feb 23, 2010 at 09:17:35AM -0800, motty cruz wrote:

> Filter # mail -v motty(a)domain.com
> Subject: test postfix conf
> debug_peer_list = 127.0.0.1
>
> .
> EOT
> Mail Delivery Status Report will be mailed to <root>.
> Filter # mailq
> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> A4051B898 1938 Tue Feb 23 09:01:54 MAILER-DAEMON
> (mail transport
> unavailable)

Third item from http://www.postfix.org/DEBUG_README.html#mail:

Postfix logging. See the text at the top of the DEBUG_README document
to find out where logging is stored. Please do not frustrate the
helpers by word wrapping the logging.

Find and post the log entries for this ( A4051B898 ) queue-id, repost
the log entries and your configuration setings together in one message.

> filter# postconf -n
> alias_database = hash:/usr/local/etc/postfix/aliases
> alternate_config_directories = /usr/local/etc/postfix-out

You seem to have multiple Postfix instances, make sure you are posting
configuration information for the right one... Was "MAIL_CONFIG"
set in the environment when you were running the mail(1) command in
question?

> anvil_rate_time_unit = 20s

Why?

> config_directory = /usr/local/etc/postfix
> content_filter = smtp-amavis:[127.0.0.1]:10024

Is an "smtp-amavis" transport defined in master.cf?

> local_transport = no local mail delivery

There's your problem. This is nonsense.

> mydestination = domain.com,

Especially when you configure your domain for local delivery.

--
Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment. If you are interested, please drop me a note.

From: /dev/rob0 on
Please do not top-post your replies. Thank you.

On Tue, Feb 23, 2010 at 09:17:35AM -0800, motty cruz wrote:
> FreeBSD 7.2 and Postfix 2.6.5 and I want to send email to myself
> motty(a)domain.com

Please use example.com for examples. Example.TLD is reserved for
examples in every top-level domain. However, it's possible that
munging your domain name will make it impossible for others to
assist in solving your mail routing issues.

> so I type the following in the command prompt
>
> Filter # mail -v motty(a)domain.com
> Subject: test postfix conf
> debug_peer_list = 127.0.0.1

In addition to what Victor said, I would point out that your
mail(1)/mailx(1) client is probably not making any network
connections. The debug_peer_list is not relevant for sendmail(1)
submission.
--
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header