I have been messing with this for far more time than I should to do something so simple! I've run postfix in the past and have never run into anything like this. Basically it is this, I wanted to create an alias, wlgivens, to direct all email to wlgiv...@domain.net to wi...@domain.net. Simple? You would thing so.
After getting everything setup, I edited my /etc/postfix/alias file and added "wlgivens: willi".... generated a new hash file using postalias and 'thought' everything was fine. I logged into my webmail account and attempted to send an email to wlgiv...@domain.net and promptly starting receiving the following error: Mar 25 01:49:33 jericho postfix/smtp[7854]: 31366AFDB18: to=<wlgiv...@other.host>, orig_to=<wi...@domain.net>, relay=none, delay=170354, delays=170332/0.07/21/0, dsn=4.4.1, status=deferred (connect to other.host[24.28.193.9]:25: Connection timed out) Mar 25 01:49:34 jericho postfix/smtp[7852]: connect to other.host[24.28.193.9]:25: Connection timed out Mar 25 01:49:34 jericho postfix/smtp[7852]: 54014AFDB33: to=<wlgiv...@other.host>, orig_to=<wi...@domain.net>, relay=none, delay=169581, delays=169559/0.05/21/0, dsn=4.4.1, status=deferred (connect to other.host[24.28.193.9]:25: Connection timed out) **NOTE: 24.28.193.9 is the ip that it resolves the domain 'other.host' to, it's a default RoadRunner ip. From the looks of things, it appears that it believes other.host is my MX or relay server. I logged into a linux help group and was told that I need to setup a file, /etc/postfix/virtual, containing " wlgiv...@domain.net willi" and then run postmap to generate a virtual.db file. I also needed to create a file, mydomain, containing the line "domain.net OK"... which I also did. I was also instructed to edit my main.cf and add the following lines: virtual_alias_maps = hash:/etc/postfix/virtual virtual_alias_database = hash:/etc/postfix/virtual virtual_alias_domains = hash:/etc/postfix/mydomains Now after reloading postfix, I get the SAME error after sending another test email and now YAHOO black listed me with a 553 open relay error! It's not an open relay. RECAP: Can't send email to an aliased name, wlgivens, and have it direct it to user willi. The root aliasing works ( root > willi) btw. /*Build Options*/ make MANPATH=/usr/share/man \ CC=gcc-4.3.4 CXX=g++-4.3.4 \ CFLAGS+="-O3 -finline -fstrict-aliasing -mtune=ev67 -pipe -w -mieee \ -DNO_EPOLL -I. -I../../include -DLINUX2 /* FILES */ ./ bounce.cf.default makedefs.out relocated ../ canonical master.cf TLS_LICENSE access generic mydomains transport access.db header_checks mydomains.db transport.db aliases LICENSE POSTFIX_CONFIG virtual aliases.db main.cf relay_recipients virtual.db bounce.cf main.cf.default relay_recipients.db /* POSTFIX CONFIG */ r...@jericho:postfix -> postconf -n alias_database = dbm:/etc/postfix/aliases.db alias_maps = hash:/etc/postfix/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 default_destination_concurrency_limit = 20 header_checks = regexp:/etc/postfix/header_checks home_mailbox = Maildir/ html_directory = no inet_interfaces = all local_destination_concurrency_limit = 2 local_recipient_maps = unix:passwd.byname $alias_maps luser_relay = $mail...@$mydomain mail_owner = postfix mailbox_command = /usr/bin/procmail -f- -a "$USER" mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost mydomain = domain.net mynetworks = 192.168.0.0/24, 127.0.0.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no recipient_delimiter = + sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_banner = $myhostname ESMTP $mail_name soft_bounce = no unknown_local_recipient_reject_code = 550 virtual_alias_domains = hash:/etc/postfix/mydomains virtual_alias_maps = hash:/etc/postfix/virtual