hi i have 2 mail servers on the same subnet: S1 mx= ex.com.pl (exchange) S2 mx= test.ex.com.pl (postfix) //for some rison on S2 i recenty configured postfix with Virtual Domains on mysql based on: help.ubuntu.com/community/PostfixCompleteVirtualMailSystemHowto; this is example of postfix main file # Virtual Mailbox Domain Settings virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_mailbox_limit = 1024000000 virtual_minimum_uid = 5000 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail virtual_transport = virtual # Additional for quota support virtual_create_maildirsize = yes virtual_mailbox_extended = yes virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_maildir_l virtual_overquota_bounce = yes on S2 i've created virtual domain using postfixadmin : test.ex.com.pl; i have no problem sending mails by command line using "netcat test.ex.com.pl 25" betwen S2 & S1; but only in this case when i use outlook or squirrelmail (from other komputer on the same subnet) and try send mail from S2 to S1 i have mesage: Message not sent. Server replied: Requested action not taken: mailbox unavailable 550 5.1.1 <[email protected]>: Recipient address rejected: ex.com.pl on S2 in mail.log i see: postfix/smtpd[3696]: match_string: ex.com.pl ~? localhost postfix/smtpd[3696]: match_list_match: ex.com.pl: no match postfix/smtpd[3696]: dict_mysql_get_active: found active connection to host 127.0.0.1 postfix/smtpd[3696]: dict_mysql: successful query from host 127.0.0.1 postfix/smtpd[3696]: dict_mysql_lookup: retrieved 0 rows postfix/smtpd[3696]: maps_find: virtual_alias_maps: @ex.com.pl: not found postfix/smtpd[3696]: mail_addr_find: [email protected] -> (not found) postfix/smtpd[3696]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: ex.com.pl; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[x.x.x.x]> postfix/smtpd[3696]: > localhost[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: ex.com.pl using outlook i can send message inside domain test.ex.com.pl or even from S1 to S2; why i cannot send mail to no virutal domain like ex.com.pl, or yahoo.com? where is problem?
Did you set up SMTP-AUTH? Do you use something like "Server requires authentication" in your email clients?
yes; 220 S2.localdomain ESMTP Postfix (Ubuntu) ehlo test.com.pl 250-S2.localdomain 250-PIPELINING 250-SIZE 10240000 250-ETRN 250-STARTTLS 250-AUTH NTLM PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-AUTH=NTLM PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
yes i have proper settings in may email software; i can login and send emails between users in the same virtual domain; using smtp or imap; but when i try to send to outside domain like yahoo or google she try to find this email addres in virutal mssql table , he dont try to resolve this internet adres; look again this: postfix/smtpd[3696]: match_string: ex.com.pl ~? localhost postfix/smtpd[3696]: matchlistmatch: ex.com.pl: no match postfix/smtpd[3696]: dictmysqlget_active: found active connection to host 127.0.0.1 postfix/smtpd[3696]: dict_mysql: successful query from host 127.0.0.1 postfix/smtpd[3696]: dictmysqllookup: retrieved 0 rows postfix/smtpd[3696]: mapsfind: virtualalias_maps: @ex.com.pl: not found postfix/smtpd[3696]: mailaddrfind: [email protected] -> (not found) thanks for any advise;
th real name is diffrent but idea is the same; i can resolv A, MX record for both domain from internet and local dns;