OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
problem with virtual domain

From: Dmitry Rykov (dimaseliger.tversu.ru)
Date: Thu Nov 02 2006 - 07:59:28 CST


Hello,

I had very simple postfix server on server.domain.com
(x.x.x.x). Users were able to receive mail from
and send mail to anywhere (from $mynetworks, of course).

alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = localhost $myhostname
mydomain = domain.com
myhostname = server.domain.com
mynetworks = x.x.x.x/24, y.y.y.y/24, 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

Now I would like to provide mail server
for one department. They would like to have
emails like johndep.new.com.

I created host item in appropriate dns server
like dep.new.com (z.z.z.z) and set this
ip address (z.z.z.z) as alias on my server
interface (x.x.x.x).
Also I add:

virtual_alias_maps = pgsql:/etc/postfix/pgsql-aliases.cf
virtual_gid_maps = static:1004
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = pgsql:/etc/postfix/pgsql-domains.cf
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql-maps.cf
virtual_minimum_uid = 1000
virtual_uid_maps = static:1004

And now I have big problem. Old and new virtual
users can receive mail from anywhere, send
mail each other but CAN'T SEND mail to world.

If I just telnet on my server 25 port I have
answer on rcpt to: somefar.com like:
Recipient address rejected: User unknown in virtual mailbox

What is wrong? Anyone can help me?

--
Best regards,
 Dmitry mailto:dimaseliger.tversu.ru