LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-24-2004, 04:39 AM   #1
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Rep: Reputation: 15
How to make postfix send mails for virtual domains?


My DNS configuration as follows:
Code:
zuben.org.                   
                        1D IN NS        @
                        1D IN A         127.0.0.1
                        1D IN A         192.168.0.11
Chowroc                 1D IN A         192.168.0.11
mail                    1D IN A         192.168.0.11
dns                     1D IN CNAME     Chowroc.zouben.org.
@                       1D IN MX 5      mail.zouben.org.
L01                     1D IN A         192.168.0.2
L03                     1D IN A         192.168.0.4

vdm.com.
                        1D IN NS        dns.zouben.org.
vh                      1D IN A         192.168.3.1
@                       1D IN MX 5      mail.zouben.org.
vdm.com is a virtual domain, and now I can send mail to it, when mail.zouben.org will deliver to the mailbox for virtual domain.

My postfix configuration for virtual domain:
Code:
virtual_mailbox_domains = dm04.com vdm.com
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100 
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
I kown Postfix will not relay mails for other domains. But now I want the SMTP Server mail.zouben.org to send mail for my virtual domains, I tried on vh.vdm.com:
# echo "string" | mail -s "string" roc@zouben.org
# echo "string" | mail -s "string" MY-ACCOUNT@163.com
But I found it still use the local unconfigured sendmail for sending, but I did not start sendmail.
No problem for routing & DNS lookup, when I run:
# mailq
on vh.vdm.com, it shows the queue is empty.

I stopped SASL, using esmtp to do this, "relay access denied" was reported.

Why? I have set MX record of DNS, why don't vh.vdm.com use mail.zouben.org to send mail? How can I achieve that?

thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 08:32 PM
No Incoming postfix mail, virtual domains geokker Linux - Software 0 06-22-2004 06:09 AM
Postfix and virtual domains nvargas Linux - Software 6 03-12-2004 02:35 PM
Mailman + postfix virtual domains paulten Linux - Networking 0 01-12-2004 06:39 AM
PostFix multipe domains (virtual setup) dulaus Linux - Networking 0 10-10-2002 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration