OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
"append_at_myorigin" not working

From: Joel CARNAT (joelcarnat.net)
Date: Sat Mar 04 2006 - 03:59:09 CST


Hi,

Using (from shell) : `echo test | mailx -s test root`
makes the mail being delivered to root$myhostname rather than to
root$mydomain, which I expected after reading about
"append_at_myorigin".

To have the command work as expected, I had to set up /etc/mail/aliases
with an "root: roothere.com" entry.

Did I misunderstood the use of append_at_myorigin ?
Is there a way to achieve the append process without the aliases file ?

TIA,
   Jo

PS: /usr/pkg/sbin/postconf -n
command_directory = /usr/pkg/sbin
config_directory = /usr/pkg/etc/postfix
daemon_directory = /usr/pkg/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = localhost, $myhostname
mail_owner = postfix
mailq_path = /usr/pkg/bin/mailq
manpage_directory = /usr/pkg/man
mydestination = localhost, localhost.$mydomain, $myhostname
mydomain = here.com
myhostname = postfix.here.com
myorigin = $mydomain
newaliases_path = /usr/pkg/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/pkg/share/doc/postfix
relayhost = relay.here.com
sample_directory = /usr/pkg/share/examples/postfix
sendmail_path = /usr/pkg/sbin/sendmail
setgid_group = maildrop
transport_maps = hash:/usr/pkg/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = ldap:valias, hash:/usr/pkg/etc/postfix/valias
virtual_gid_maps = static:3000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = $transport_maps
virtual_mailbox_maps = ldap:vmailbox, hash:/usr/pkg/etc/postfix/vmailbox
virtual_minimum_uid = 3000
virtual_uid_maps = static:3000