OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: aliases work except when sent from the mailhost itself

From: Mark Duling (mark.dulingbiola.edu)
Date: Wed Sep 13 2006 - 19:08:50 CDT


Noel Jones <njonesmegan.vbhcs.org> writes:
>>Anyone know how to fix the problem of aliases not working
>>when sending
>>mail via command-line on the same bos as the MTA? I've
>>scanned the mail
>>archives but none of the tips have helped. Thank you.
>
>Send us "postconf -n" output and log lines showing a
>complete failed transaction.

Thank you for responding. Below is the info. By the way, I am usinng
tha 'mail' command-line app to send.

Failed transaction
------------------------
Sep 13 15:04:23 NRG-WB-RANCID-Mini postfix/pickup[17564]: B7A043EE8548:
uid=503 from=<nagios>
Sep 13 15:04:23 NRG-WB-RANCID-Mini postfix/cleanup[17572]: B7A043EE8548:
message-id=<20060913220423.B7A043EE8548whistleblower.<mydomain>.edu>
Sep 13 15:04:23 NRG-WB-RANCID-Mini postfix/qmgr[17615]: B7A043EE8548:
from=<nagioswhistleblower.<mydomain>.edu>, size=549, nrcpt=1 (queue
active)
Sep 13 15:04:23 NRG-WB-RANCID-Mini postfix/local[17624]: B7A043EE8548:
to=<rancid-dormwhistleblower.<mydomain>.edu>, orig_to=<rancid-dorm>,
relay=local, delay=0, status=bounced (unknown user: "rancid-dorm")
Sep 13 15:04:23 NRG-WB-RANCID-Mini postfix/cleanup[17572]: D85DB3EE854D:
message-id=<20060913220423.D85DB3EE854Dwhistleblower.<mydomain>.edu>
Sep 13 15:04:23 NRG-WB-RANCID-Mini postfix/qmgr[17615]: D85DB3EE854D:
from=<>, size=2411, nrcpt=1 (queue active)
Sep 13 15:04:23 NRG-WB-RANCID-Mini postfix/qmgr[17615]: B7A043EE8548:
removed

postconf -n
------------------------
command_directory = /opt/local/sbin
config_directory = /opt/local/etc/postfix
daemon_directory = /opt/local/libexec/postfix
debug_peer_level = 2
default_privs = nobody
html_directory = no
mail_owner = postfix
mailq_path = /opt/local/bin/mailq
manpage_directory = /opt/local/share/man
mynetworks_style = class
newaliases_path = /opt/local/bin/newaliases
queue_directory = /opt/local/var/spool/postfix
readme_directory = /opt/local/share/postfix/readme
sample_directory = /opt/local/share/postfix/sample
sendmail_path = /opt/local/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

>Wild guess: you still have sendmail(TM) installed.

Not sendmail, but OS X has a built-in copy of Postfix that does not load
at system boot. I've had some problems with it in the past on another
host and I prefer my open souce stuff to be quarantined off to the
MacPorts tree on my HD. Anyway, the MacPorts one (/opt/local = MacPorts
ports) seems to be the only one running:

  695 ?? Ss 0:03.71 /opt/local/libexec/postfix/master
 3623 ?? Ss 0:00.01 /opt/local/bin/daemondo --label=postfix
--start-cmd /opt/local/etc/LaunchDaemons/....... (startup scripts for
MacPorts)

Mark