OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Virtual aliases: mails from outside not delivered

From: Shin-Cheng Mu (scmipl.t.u-tokyo.ac.jp)
Date: Tue Aug 03 2004 - 05:12:01 CDT


Hi,

I browsed through the mailing list for a while and noticed
that a number of user reported similar symptoms. I'm not sure
it's the same cause, however, and I would like to ask for your
help.

I was trying to follow the instructions on

    http://www.postfix.org/VIRTUAL_README.html#forwarding

to set up a virtual domain (say, vdomain.com) on my server
and forward the email to webmastervdomain.com to another
email address. However, only the emails sent from the localhost
were delivered. Emails from other machines never arrived --
there are no error messages or bounced emails either.

The output of postconf -n will be attached below. What I did
basically was adding to main.cf (without the leading spaces):

   virtual_alias_domains = vdomain.com
   virtual_alias_maps = hash:/etc/postfix/virtual

and put in /etc/postfix/virtual a single line:

   webmastervdomain.com scmipl.t.u-tokyo.ac.jp

Curiously, no error messages about not relaying emails
were logged in /var/log/mail.log, which is where syslog.cons
says the errors should go.

     mail.* /var/log/mail.log

I tried to assign non-default values to relay_domains,
mydomain, local_recipient_maps, etc, but that did not
improve anything. The only unsual thing was that when I
tried to change inet_interfaces from "all" to "vdomain.com",
restarting postfix gave me this error messsage:

    postfix: fatal: parameter inet_interfaces: no local
    interface found for 220.111.X.X

where 220.111.X.X is my IP address. The machine is
set up on a local network and can be referred by another
local IP 192.168.X.X. I don't know whether that is
relevant, however.

Hope that's enough information, and thanks in advance
for your help!

sincerely,
Shin-Cheng Mu

---- output of postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 0
mydomain_fallback = localhost
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
relay_domains = vdomain.com
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 450
virtual_alias_domains = vdomain.com
virtual_alias_maps = hash:/etc/postfix/virtual

---- contents of /etc/postfix/virtual
webmastervdomain.com scmipl.t.u-tokyo.ac.jp