1

I've went through the article below step by step in order to make Postfix up and running on Ubuntu 14.04:

PostfixVirtualMailBoxClamSmtpHowto

Now in the step where it says to use mail command to send email I send it. The command I enter:

root@myDomain# mail [email protected]
Subject: test subj
test it

.
Cc:

Now I should have a new folder as below:

/home/vmail/mydomain/info/new

I cannot see such an email. I can telnet to 25 port:

root@mydomain:~# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mydomain.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-yadme.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

Postfix server is running. The /var/log/mail.log says:

Jan 17 12:03:45 mydomain postfix/cleanup[26044]: 269F63E0E9: message-id=<[email protected]>
Jan 17 12:03:45 mydomain postfix/qmgr[26030]: 269F63E0E9: from=<[email protected]>, size=291, nrcpt=1 (queue active)
Jan 17 12:03:45 mydomain postfix/trivial-rewrite[26045]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Jan 17 12:03:45 mydomain postfix/local[26046]: 269F63E0E9: to=<[email protected]>, relay=local, delay=0.1, delays=0.08/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "info")
Jan 17 12:03:45 mydomain postfix/cleanup[26044]: 34BBA3E0EA: message-id=<[email protected]>
Jan 17 12:03:45 mydomain postfix/qmgr[26030]: 34BBA3E0EA: from=<>, size=1916, nrcpt=1 (queue active)
Jan 17 12:03:45 mydomain postfix/bounce[26047]: 269F63E0E9: sender non-delivery notification: 34BBA3E0EA
Jan 17 12:03:45 mydomain postfix/qmgr[26030]: 269F63E0E9: removed
Jan 17 12:03:45 mydomain postfix/local[26046]: 34BBA3E0EA: to=<[email protected]>, relay=local, delay=0.04, delays=0.02/0/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Jan 17 12:03:45 mydomain postfix/qmgr[26030]: 34BBA3E0EA: removed

The below parameters are the one I've added to main.cf:

home_mailbox = Maildir/
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

I have added MX record if that helps. What should I do now? I couldn't think of something that I've done wrong? What I'm missing?

EDIT:
The below command query info user:

postmap -q [email protected] hash:/etc/postfix/vmaps

it outputs:

mydomain.com/info/

I removed all the domain in front of mydestination =. Now mail.log says:

Jan 17 13:20:07 mydomain postfix/pickup[26583]: 8E3803E0E4: uid=0 from=<root>
Jan 17 13:20:07 mydomain postfix/cleanup[26588]: 8E3803E0E4: message-id=<[email protected]>
Jan 17 13:20:07 mydomain postfix/qmgr[26584]: 8E3803E0E4: from=<[email protected]>, size=282, nrcpt=1 (queue active)
Jan 17 13:20:07 mydomain postfix/virtual[26590]: 8E3803E0E4: to=<[email protected]>, relay=virtual, delay=0.08, delays=0.06/0/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Jan 17 13:20:07 mydomain postfix/qmgr[26584]: 8E3803E0E4: removed

BUT inside of ~/Maildir is empty. There is not folder named mydomain/info. There 3 folders named: tmp, new, cur. Now what is happening?

5
  • Your logs tell you clearly what the issue is - unknown user: "info".
    – Jenny D
    Jan 17, 2016 at 12:48
  • @JennyD, I have that user in vmap
    – Alireza
    Jan 17, 2016 at 13:17
  • @JennyD please take time to see the edit part.
    – Alireza
    Jan 17, 2016 at 13:42
  • Did you do ls -la or just ls?
    – Jenny D
    Jan 17, 2016 at 13:59
  • @JennyD, problem is solved as in above config you can see I've set virtual_mailbox_base = /home/vmail . so I was looking in a wrong place ~/Maildir!
    – Alireza
    Jan 18, 2016 at 5:04

1 Answer 1

0

Problem is solved!

As in the above config you can see I've set virtual_mailbox_base = /home/vmail, so I was looking in a wrong place ~/Maildir

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .