Postfix Virtual Users - doesnt work

Discussion in 'HOWTO-Related Questions' started by vargadanis, Aug 29, 2007.

  1. vargadanis

    vargadanis New Member

    Hi!
    I promise I will give as much info as I can. I followed everything according to:
    http://howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch_p6

    Everything seems to work.
    That is good, isn't it? I tried to send a mail to the root.
    Code:
    mail root@localhost
    Subject: Test
    Test
    Ctrl+D
    Cc:
    su - dani
    mail
    1 new mail
    That is working too. Dani is a local user that is in the /etc/aliases file. It gets the mails that are sent to root.
    So local delivery is working fine.
    I added a domain in the MySQL DB and then a user. I sent a mail to the created user but nothing happened. in the /home/vmail/ dir there should be a dir like example.com and some more stuff, right? It is completly empty.

    I tried to log on via pop3:
    syslog
    mail.err
    I corrected the master.cf file. It is good now

    If u need anything else, pls let me know
     
    Last edited: Aug 29, 2007
  2. vargadanis

    vargadanis New Member

    This is odd
    I added a new domain in the MySQL db. I sent a mail:
    mail [email protected]
    also I added a forwarder so a local user would get it too.
    I chk the local user's mail and here is the mail
    but there is nothing in the /home/vmail dir and I cannot find any errors in the logs. Any clue?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Please correct this error. I guess it should be danis.myip.hu.
     
  4. vargadanis

    vargadanis New Member

    I corrected it. However the problem still exists.
    What if I removed the computer from the internet just to test it locally. I installed bind9 on it and set up another computer to serve as NS2. So I have two NS servers on a LAN. I set up the computer to search those nameservers.
    Do u think it is a problem that that domain I wanted to test is actually not pointing to my computer and postfix was sending the emails out to the internet instead of local delivery? If it is so, than all my problems are solved.
     
  5. vargadanis

    vargadanis New Member

    Peeps... I am sorry... I found the solution for the problem. Actually it was there during the whole time.
    The only problem was that there was not MX pointing to my computer therefore the mail could not be delivered. So all u need to do is to edit the bind9 zone file and add and MX record. :)
     

Share This Page