Testing email delivery

At this point the /var/vmail directory should be empty yet. You can get a list of all files and directories within by running:

find /var/vmail

There is probably nothing except perhaps a "lost+found" directory if /var/vmail is on a seperate partition.

Let's now try to send an email to the user john@example.org:

echo test | mail john@example.org

If everything worked as expected Postfix has accepted the email and forwarded it to Dovecot which in turn wrote the email in John's maildir. Look again:

find /var/vmail

You should see something like:

/var/vmail/
/var/vmail/example.org
/var/vmail/example.org/john
/var/vmail/example.org/john/Maildir
/var/vmail/example.org/john/Maildir/dovecot-uidvalidity
/var/vmail/example.org/john/Maildir/tmp
/var/vmail/example.org/john/Maildir/dovecot.index.log
/var/vmail/example.org/john/Maildir/dovecot-uidlist
/var/vmail/example.org/john/Maildir/dovecot-uidvalidity.4daa0b32
/var/vmail/example.org/john/Maildir/new
/var/vmail/example.org/john/Maildir/new/1302989618.M190758P1940.debian,S=376,W=386
/var/vmail/example.org/john/Maildir/cur

Your files may have slightly different numbers. So John has a new email in his inbox. Your /var/log/mail.log will look something like:

postfix/pickup[1788]: 2A907A8C: uid=0 from=<root>

postfix/cleanup[1936]: 2A907A8C: message-id=<20110416213338.2A907A8C@myserver>

postfix/qmgr[1789]: 2A907A8C: from=<root@myserver>, size=306, nrcpt=1 (queue active)

dovecot: deliver(john@example.org): msgid=<20110416213338.2A907A8C@myserver>: saved mail to INBOX

postfix/pipe[1939]: 2A907A8C: to=<john@example.org>, relay=dovecot, delay=0.03, delays=0.02/0/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service)

postfix/qmgr[1789]: 2A907A8C: removed

If anything went wrong then carefully check the last lines of your /var/log/mail.log. It will very likely point you to the problem.

(If you are curious how to send an email to your mail server using a manual SMTP session then read the respective section in the Lenny tutorial. It's also good as an additional test because the "mail" command bypasses a few of Postfix's security features.)

Access the email on disk

Apparently everything went well. To read the email from John's inbox you can use either POP3, IMAP or access the maildir directly. The latter can be done using the console-based "mutt" email client:

mutt -f /var/vmail/example.org/john/Maildir

(You may get asked to create /root/Mail - this is standard procedure. Just answer "yes" or press Enter.)

What you see now are the contents of John's mailbox:

Press enter and you can read the email number 1:

So there is your test email. Press "q" to quit "mutt".

Access the email using IMAP

Actually we just cheated a little as we have accessed John's inbox directly on disk. A better test is to use POP3 or IMAP. And fortunately "mutt" supports IMAP:

mutt -f imap://john@example.org@localhost

You may be prompted to confirm that you are connecting to a mail server with an untrusted SSL certificate. That's okay. In the end you should see the index and email just like in the screenshots above. That worked? Great. Otherwise check your /var/log/mail.log for error messages.

If you still can't get enough and want to run a manual POP3 and IMAP session using TELNET then check out the Lenny tutorial on a complete example.

POP3 versus IMAP

If you wonder what the difference between POP3 and IMAP is:

  • POP3 (Post Office Protocol) is a simple protocol that lets you fetch email from a single mailbox. It is usually used to collect all emails, though you can also leave them on the server but this is a bit of a hack and you can't create multiple folders on the server to sort your mail. It saves space on the mail server because the email gets moved to the user's hard disk on their computer. But they won't be able to access the same email from another computer. Besides you cannot create multiple folders on the server to sort your mail. There is just the inbox. This variant is antiquated and not exactly user-friendly.
  • IMAP (Internet Messaging Application Protocol) is predominantly focused upon leaving your mail on the server but you can also collect it like POP3. The inbox is where your incoming emails are stored but users can also maintain folders and move emails to them. But users can move emails to different directories. IMAP is useful when you want to access your email from different locations without losing mail because you fetched it from another location. The drawback is that lazy users leave their mail on the server thus filling up your server's hard disk (unless you use quotas).

77 Comments

Postfix does not handle the domains

Hi,


When i send mail to john@example.org, my installation does not handle example.org as local domain. I have added an other domain and user in it, and it also does not work, it looks up in dns an try to deliever it to the mx record.


When i try to test:

root@isabell:/etc/dovecot# postmap -q john@example.org mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
1
root@isabell:/etc/dovecot# postmap -q test@babeworld.at mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
1

it seems to work, but when i send mail:

root@isabell:/etc/dovecot# mail john@example.org
Subject: test
tralala
.
Cc:
root@isabell:/etc/dovecot#

In the log i can see:

May 12 10:18:24 isabell postfix/qmgr[17583]: C0F8F56579: from=<root@mail.babeworld.at>, size=283, nrcpt=1 (queue active)
May 12 10:18:24 isabell postfix/smtp[1056]: connect to example.org[192.0.32.10]:25: Connection refused
May 12 10:18:24 isabell postfix/smtp[1056]: C0F8F56579: to=<john@example.org>, relay=none, delay=65368, delays=65368/0/0.2/0, dsn=4.4.1, status=deferred (connect to example.org[192.0.32.10]:25: Connection refused)
 

So i see my postfix does not handle it as local domain.


Can you please give me a hint?

Liebe Grüsse aus Österreich

Werner

Having the same issue

Having the same issue here.
It seems that postfix does not query the database to find out if its a 'local' domain.

Running the postmap -q commands I see the "1" result and also the query in mysql log.

When sending an email I see following query:
110512 13:57:18    99 Connect   postfix@localhost on mail
                   99 Query     SELECT 1 FROM virtual_aliases WHERE source='mx.myserver.tld' (submitting server fqdn, not the local server)
                   99 Query     SELECT 1 FROM virtual_aliases WHERE source='surenhohn.de'

Any hints?

 

Cheers,
Sven

basta63

Sorry for my bad english.

Hello.

Thank you for solution, but i try send test mail and.. cant, becouse:

cat /var/log/mail.log

debian dovecot: deliver(john@example.org): mkdir(/var/vmail/example.org/john/Maildir/cur) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var/vmail)
 

In the text I have not seen that we have given permission for the group "vmail" to create the folder in the /var/vmail

Problem.

 

All was going really well, but I can't seem to get past this error.

When I send a test email, Dovecot does not write any new files or directories to /var/vmail and when I look at the mail.log, it says;

mail postfix/virtual [3421] : fatal: bad string length () < 1:  virtual_mailbox_base =

mail postfix/virtual [3090] : warning: process /usr/lib/postfix/virtual pid3421 exit status 1

mail postfix/virtual [3090] : warning: /usr/lib/postfix/virtual bad command startup throttling

If I go into /var/spool/mail/[me], the email is there.

I have vmail owned by vmail with permissions set of 755. I've even tried a temporary setting of 777, but still no go.

It seems virtual_mailbox_base may be the key, but I don't understand what it's trying to tell me and Google searches have not produced anything so far in plain language that I can understand. So any guidance from anyone would be most appreciated.

Yes.

As far as I understand, virtual_transport is set to dovecot. Here is the output as requested:


alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = mail.pound-a-website.com, localhost.pound-a-website.com, , localhost
myhostname = mail.pound-a-website.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = mysql:/etc/postfix/mysql_vam.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_vmd.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_vmm.cf
virtual_transport = dovecot

Please note, I abbreviated the file names for virtual_alias_maps and the next two, but the paths that lead to them are similarly abbreviated. So I can't imagine that would be the cause. Everything up to this point, including the tests you have in your tutorial worked perfectly. The only other suspects, are the two commas in the mydestination line. But as I know nothing about mail servers, (at least, only what I've learned here), I don't know if that is right or wrong. Similarly, I didn't know if having the same mydestination and myhostname would cause a problem and even if it did, how I overcome that configuration problem

It's very kind of you to respond Christoph - thank you.

Oh dear!

I was hoping you'd say, idiot! You didn't do as you were told!!


OK, I edited the main.cf file and wrote an entry for virtual_mailbox_base (as above) and then reloaded postfix.

The good news is, it's got rid of the error, the not so good, is it's still not working as you describe. My understanding is, when an email is sent, Dovecot will write it to /var/vmail and place it in an appropriate directory - I hope I have that right.

Anyway, it seems something is appending -f to root and in the interests of getting to the bottom of this and in case anyone else experiences the same error, I've take the liberty of posting the log error in case it sheds any light on what is going wrong. Here it is:

May 22 22:57:38 mail postfix/pickup[1738]: 5D35BD5D: uid=0 from=<root>
May 22 22:57:38 mail postfix/cleanup[1934]: 5D35BD5D: message-id=<20110522215738.5D35BD5D@mail.pound-a-website.com>
May 22 22:57:38 mail postfix/qmgr[1737]: 5D35BD5D: from=<root@mail.pound-a-website.com>, size=300, nrcpt=1 (queue active)
May 22 22:57:38 mail postfix/pipe[1937]: 5D35BD5D: to=<john@example.org>, relay=dovecot, delay=0.19, delays=0.11/0.02/0/0.05, dsn=5.3.0, status=bounced (command line usage error. Command output: Fatal: Unknown argument: -froot@mail.pound-a-website.com Usage: deliver [-c <config file>] [-a <address>] [-d <username>] [-p <path>]                [-f <envelope sender>] [-m <mailbox>] [-n] [-s] [-e] [-k] )
May 22 22:57:38 mail postfix/cleanup[1934]: 7D622D5E: message-id=<20110522215738.7D622D5E@mail.pound-a-website.com>
May 22 22:57:38 mail postfix/qmgr[1737]: 7D622D5E: from=<>, size=2549, nrcpt=1 (queue active)
May 22 22:57:38 mail postfix/bounce[1939]: 5D35BD5D: sender non-delivery notification: 7D622D5E
May 22 22:57:38 mail postfix/qmgr[1737]: 5D35BD5D: removed
May 22 22:57:38 mail postfix/local[1941]: 7D622D5E: to=<paul@mail.pound-a-website.com>, orig_to=<root@mail.pound-a-website.com>, relay=local, delay=0.12, delays=0.05/0.02/0/0.05, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
May 22 22:57:38 mail postfix/qmgr[1737]: 7D622D5E: removed


The key part seems to me to be; Unknown argument: -froot, but I'm at a loss to understand where the -f is coming from.

I've checked and double checked all my configuration and can't for the life of me, see any errors.

Typo in master.cf

Hi,

It seems that you have an error in your configuration file /etc/postfix/master.cf

at the line where you added the dovecot service.

You probaly forgot to add a space between the '-f' and '$(sender)'

Sir - (Mam?) you are a star!!

You hit it in one. Thank you so much.

As I'm using a headless sever, all these commands have to be typed manually (I don't have the luxury of copy and paste), but you've hit it square on. It now works perfectly - thank you.

no user dir in /var/vmail

I have the same problem with virtual_mailbox_base =

After I added additional line (virtual_mailbox_base=/var/vmail ) as you suggested no more errors but still have some problems:

Aug 11 17:01:53 supermicro postfix/pickup[14611]: 9C9B39C0C: uid=0 from=<root>
Aug 11 17:01:53 supermicro postfix/cleanup[14694]: 9C9B39C0C: message-id=<20110811140153.9C9B39C0C@supermicro.mydomain.com>
Aug 11 17:01:53 supermicro postfix/qmgr[12788]: 9C9B39C0C: from=<root@mydomain.com>, size=283, nrcpt=1 (queue active)
Aug 11 17:01:53 supermicro postfix/virtual[14697]: warning: recipient spam@mydomain.com: not found in virtual_uid_maps
Aug 11 17:01:53 supermicro postfix/virtual[14697]: 9C9B39C0C: to=<spam@mydomain.com>, relay=virtual, delay=0.02, delays=0.01/0.01/0/0.01, dsn=4.3.5, status=deferred (mail system configuration error)


Where should I start to dig?


 

G'day when i try send my self

G'day when i try send my self a test email from inside the server i get this error in my logs

May 29 14:06:47 kieran postfix/qmgr[25223]: 9F9DD44807B: from=<kieran@mail.com>, size=355, nrcpt=1 (queue active)
May 29 14:06:47 kieran deliver(kieran@name.com): mkdir(/var/vmail/name.com/kieran/Maildir/cur) failed: Permission denied
May 29 14:06:47 kieran deliver(kieran@name.com): mkdir(/var/vmail/name.com/kieran/Maildir/cur) failed: Permission denied
May 29 14:06:47 kieran postfix/pipe[25355]: 9F9DD44807B: to=<kieran@name.com>, relay=dovecot, delay=15, delays=15/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure)

I have followed the tutorial twice but i always seem to get caught at this point i have chrooted /var/vmail and set all the permissions but i am still unable to continue :( 

# 1.0.7: /etc/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: maildir:/var/vmail/%d/%n/Maildir
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
    auth default:
        mechanisms: plain login
    passdb:
        driver: pam
    passdb:
        driver: sql
        args: /etc/dovecot/dovecot-sql.conf
    userdb:
        driver: passwd
    userdb:
        driver: static
        args: uid=vmail gid=vmail home=/var/vmail/%d/%n/Maildir allow_all_users=yes
    socket:
        type: listen
        client:
            path: /var/spool/postfix/private/auth
            mode: 432
            user: postfix
            group: postfix
        master:
            path: /var/run/dovecot/auth-master
            mode: 384
            user: vmail
            group: vmail

Any ideas?

A quick update

A quick update i have figured out what was causing my issues its SELinux just need to somehow configure selinux i guess...

Dovecot don't creat seperate maildirs

Thank you for a great tutorial! But I've unfortunately runned into a problem, which I hope someone here maybe could help me with.

I've followed the tutorial with some minor changes (my own domains, quotas and not installing the tasksel packages "Standard system util."). Everything seems to work fine until I try my set-up with "echo test | mail test@abcde.ab". The mail seems to be delivered but dovecot don't create a ".../abcde.ab/test" dir.

The "/var/vmail" was empty (except for lost+found) when I sent the mail, and after I get:

$ find /var/vmail
/var/vmail
/var/vmail/vmail
/var/vmail/vmail/Maildir
/var/vmail/vmail/Maildir/maildirsize
/var/vmail/vmail/Maildir/new
/var/vmail/vmail/Maildir/new/1308049700.M495782P4723.mail,S=445,W=459
/var/vmail/vmail/Maildir/dovecot-uidvalidity.4df74124
/var/vmail/vmail/Maildir/dovecot-uidlist
/var/vmail/vmail/Maildir/cur
/var/vmail/vmail/Maildir/dovecot.index.log
/var/vmail/vmail/Maildir/tmp
/var/vmail/vmail/Maildir/dovecot-uidvalidity
/var/vmail/lost+found

And the /var/log/mail.log entry is:

Jun 14 12:08:20 mail postfix/pickup[4702]: 73ED865C: uid=0 from=<root>
Jun 14 12:08:20 mail postfix/cleanup[4715]: 73ED865C: message-id=<20110614110820.73ED865C@mail.abcde.ab>
Jun 14 12:08:20 mail postfix/qmgr[4703]: 73ED865C: from=<root@mail.abcde.ab>, size=395, nrcpt=1 (queue active)
Jun 14 12:08:20 mail dovecot: deliver(vmail): msgid=<20110614110820.73ED865C@mail.abcde.ab>: saved mail to INBOX
Jun 14 12:08:20 mail postfix/pipe[4722]: 73ED865C: to=<test@abcde.ab>, relay=dovecot, delay=0.08, delays=0.02/0/0/0.05, dsn=2.0.0, status=sent (delivered via dovecot service)
Jun 14 12:08:20 mail postfix/qmgr[4703]: 73ED865C: removed

If I follow the tutorial to the point I get it to work as expected, but no matter how I try to tweak and change my current configuration the problem remains. Do anyone have an idea of what the problem could be? Thanks!

I'm thinking in those paths

I'm thinking in those paths aswell, but cannot spot any error.

The /etc/dovecot/dovecot.conf file:

protocols = imaps pop3s
disable_plaintext_auth = yes
ssl = required
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/var/vmail/%d/%n/Maildir
namespace private {
separator = .
inbox = yes
}
protocol imap {
mail_plugins = quota imap_quota
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
mail_plugins = quota
}
protocol managesieve {
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = postmaster@abcde.ab
mail_plugins = sieve quota
log_path =
}
auth default {
mechanisms = plain login
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
user = root
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
quota = maildir:storage=1000000
}

And the /etc/dovecot/dovecot-sql.conf file:

driver = mysql
connect = host=127.0.0.1 dbname=mailserver user=mailuser password=xxx
default_pass_scheme = PLAIN-MD5
password_query = SELECT email as user, password FROM virtual_users WHERE email='%u';
user_query = SELECT CONCAT('/var/vmail/',CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1))) AS home, 5000 AS uid, 5000 AS gid, CONCAT('maildir:storage=',quota_kb) AS quota FROM virtual_users WHERE email='%u';

When I run the last query (the "user_query"), I get:

+---------------------------+------+------+-------------------------+
| home | uid | gid | quota |
+---------------------------+------+------+-------------------------+
| /var/vmail/abcde.ab/test | 5000 | 5000 | maildir:storage=1048576 |
+---------------------------+------+------+-------------------------+

It's the same problem if I use the database to fetch the user information and when I do as in your tutorial.

Probably I'm missing

Probably I'm missing something, but my password_query is exactly that :) I would like to use individual quotas so I borrowed the "user_query" bit from the Lenny tutorial.

However if I use "userdb static" (as in this tutorial) instead of "userdb sql" and the /etc/dovecot/dovecot-sql.conf file without the user_query part, I get the same problem. So I guess it's not that. If I find any solution I'll post it :) Thanks!

After some trail and error

After some trail and error testing I found the problem. When connecting postfix to dovecot I edited the /etc/postfix/master.cf file by running:

echo "dovecot unix - n n - - pipe" >> /etc/postfix/master.cf
echo " flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}" >> /etc/postfix/master.cf

which generated " flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f -d " for the second line. So by escaping the $ the problem is solved:

echo " flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f \${sender} -d \${recipient}" >> /etc/postfix/master.cf

A small remark...

When i send an email via "echo test | mail john@example.org" command, Postfix does not perform any mailbox existence checks! For example, i don't have any "david@example.org" mailbox in my virtual_users/virtual_aliases tables, neither any "david" user in /etc/passwd file, but the message is delivered anyway and Dovecot accepts it since it trusts Postfix and a new folder appears in /var/vmail with the name of unexistant mailbox user. That is pretty confusing. Is there a way to restrict this Postfix behaviour?

Sending via telnet works as expected:   "<david@example.org>: Recipient address rejected: User unknown in virtual mailbox table"

  when i try to login in

 

when i try to login in with imap --
 mutt -f imap://john@example.org@localhost
 
I get key error and  this error :
 
Jul 14 16:15:40 rider dovecot: imap-login: Aborted login (auth failed, 2 attempts): user=<john@example.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
 
any ideas ???
 
thanks
 

try this

I also got this error then I back tracked and found that the password for john@example.org is summersun

Have a look below and you'll see the entry under Test Data

http://workaround.org/ispmail/squeeze/database-setup

login problems

also got this error on testing it with mutt and also with thunderbird on a local machine

Mar 27 14:46:44 HOST_HERE dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (mailserver)
Mar 27 14:47:52 HOST_HERE dovecot: imap-login: Aborted login (auth failed, 2 attempts): user=<davirus@HOST_HERE.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS

i didnt use the examples in the tutorial, ive inserted my values, but double checked them (deleted the appropriate row in the db and executed the querry again)

any ideas ?

Postfix relay trough "local"

Hi,

it seems my postfix trys to find a local user:

Jul 21 16:48:04 h1126014 postfix/cleanup[15786]: 8E577F2E4D2: message-id=<serverid.net>
Jul 21 16:48:04 h1126014 postfix/qmgr[15716]: 8E577F2E4D2: from=<root@myserver.com>, size=347, nrcpt=1 (queue active)
Jul 21 16:48:04 h1126014 postfix/trivial-rewrite[15787]: warning: do not list domain myserver.com in BOTH mydestination and virtual_mailbox_domains
Jul 21 16:48:04 h1126014 postfix/local[15788]: 8E577F2E4D2: to=<daniel@myserver.com>, relay=local, delay=0.09, delays=0.06/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "daniel")
Jul 21 16:48:04 h1126014 postfix/cleanup[15786]: 9B13DF2E4D9: message-id=<serverid.net>

when I try to set in the main.cf:

mailbox_command = /usr/lib/dovecot/deliver

insted of

mailbox_command = procmail -a "$EXTENSION"

I get:

Jul 21 16:58:40 h1126014 postfix/qmgr[15918]: 2D160F2E4D9: from=<root@myserver.com>, size=347, nrcpt=1 (queue active)
Jul 21 16:58:40 h1126014 postfix/trivial-rewrite[15925]: warning: do not list domain myserver.com in BOTH mydestination and virtual_mailbox_domains
Jul 21 16:58:40 h1126014 postfix/local[15926]: 2D160F2E4D9: to=<daniel@myserver.com>, relay=local, delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "daniel")
Jul 21 16:58:40 h1126014 postfix/cleanup[15924]: 37734F2E4DA: message-id=<serverid.net>
Jul 21 16:58:40 h1126014 postfix/qmgr[15918]: 37734F2E4DA: from=<>, size=2174, nrcpt=1 (queue active)
Jul 21 16:58:40 h1126014 postfix/bounce[15927]: 2D160F2E4D9: sender non-delivery notification: 37734F2E4DA
Jul 21 16:58:40 h1126014 postfix/trivial-rewrite[15925]: warning: do not list domain myserver.com in BOTH mydestination and virtual_mailbox_domains
Jul 21 16:58:40 h1126014 postfix/qmgr[15918]: 2D160F2E4D9: removed
Jul 21 16:58:40 h1126014 dovecot: deliver(root): mkdir(/var/vmail//root/Maildir/cur) failed: Permission denied (euid=65534(nobody) egid=65534(nogroup) missing +w perm: /var/vmail/)
Jul 21 16:58:40 h1126014 dovecot: deliver(root): msgid=<20110721145840.37734F2E4DA@h1126014.serverkompetenz.net>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-07-21 16:58:40]

I think postfix dont uses "virtual_transport = dovecot" in my main.cf

I have to say that i tried your tutorial with Ubuntu 10.04.

 

Help would be great

I found my error

Hi again

I found my error: The domain was "myserver.con" already was set at the "mydestination=..." section in the main.cf.

Will this automatically set by entring the FQDN while installing postfix?

Thank you!

Had the same problem: when I sent mail to michael@example.org, it would not end up in my email client, but instead the console would tell me that I had new mail in /var/mail. When I tried another username, admin@example.org, it told me there was no such username and the mail bounced. After removing example.org from the /etc/postfix/main.cf and reloading, it worked as expected.

Same problem here...

I have the same problem, so i did a "adduser edoardo". Now the mail are sent/received, but they are stored in /var/mail/edoardo and not in /var/vmail...
I removed the user and the mail are still sent in /var/mail... this is the log:

Nov 20 19:06:18 Debian-60-squeeze-64-minimal postfix/pickup[11488]: E9C84A01A6: uid=0 from=<root>
Nov 20 19:06:18 Debian-60-squeeze-64-minimal postfix/cleanup[11494]: E9C84A01A6: message-id=<20121120180618.E9C84A01A6@pianetaminecraft.it>
Nov 20 19:06:18 Debian-60-squeeze-64-minimal postfix/qmgr[11489]: E9C84A01A6: from=<root@pianetaminecraft.it>, size=431, nrcpt=1 (queue active)
Nov 20 19:06:18 Debian-60-squeeze-64-minimal postfix/trivial-rewrite[11495]: warning: do not list domain pianetaminecraft.it in BOTH mydestination and virtual_mailbox_domains
Nov 20 19:06:18 Debian-60-squeeze-64-minimal postfix/local[11496]: E9C84A01A6: to=<edoardo@pianetaminecraft.it>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 20 19:06:18 Debian-60-squeeze-64-minimal postfix/qmgr[11489]: E9C84A01A6: removed

What is the problem?

And using roundcube?

Hi , ive followed all your tutorial and it is working great!!

However i would like to use roundcube as a webmail but i really don't know how to configure it to make request in the mysql database.

Could you provide some help?

weird mailbox paths

I followed this great tutorial to this step, everything worked well.

but i get with after the testmail, dovecot created the mailbox path like this:

/var/vmail/example.org/john/Maildir/var/vmail/example.org/john/Maildir

I ran out of ideas where to look for the line that provokes the double appearance.

a quick hint would be greatly appreciated :-)

no user dir in /var/vmail

I have the same problem with virtual_mailbox_base =

After I added additional line (virtual_mailbox_base=/var/vmail ) as you suggested no more errors but still have some problems:

Aug 11 17:01:53 supermicro postfix/pickup[14611]: 9C9B39C0C: uid=0 from=<root>
Aug 11 17:01:53 supermicro postfix/cleanup[14694]: 9C9B39C0C: message-id=<20110811140153.9C9B39C0C@supermicro.mydomain.com>
Aug 11 17:01:53 supermicro postfix/qmgr[12788]: 9C9B39C0C: from=<root@mydomain.com>, size=283, nrcpt=1 (queue active)
Aug 11 17:01:53 supermicro postfix/virtual[14697]: warning: recipient spam@mydomain.com: not found in virtual_uid_maps
Aug 11 17:01:53 supermicro postfix/virtual[14697]: 9C9B39C0C: to=<spam@mydomain.com>, relay=virtual, delay=0.02, delays=0.01/0.01/0/0.01, dsn=4.3.5, status=deferred (mail system configuration error)


Where should I start to dig?

Aliases?

Okay so everything works fine and dandy... so far

I have foo@example.org in virtual_mailbox and bar@example.org forwarding to foo@example.org

The above works IF I send the e mail to bar@example.org FROM foo@example.org

If I send an email to bar@example.org from my gmail account it never shows up..

When I run the test, nothing

When I run the test, nothing shows up in /var/vmail and instead I get this error. I don't really know what it means.

Sep 22 18:39:13 srv postfix/pickup[26887]: 0D17F19409E3: uid=0 from=<root>
Sep 22 18:39:13 srv postfix/cleanup[26904]: 0D17F19409E3: message-id=<20110922223913.0D17F19409E3@localhost.mydomain.com>
Sep 22 18:39:13 srv postfix/qmgr[26888]: 0D17F19409E3: from=<root@mydomain.com>, size=412, nrcpt=1 (queue active)
Sep 22 18:39:13 srv dovecot: deliver(john@mydomain.com): userdb lookup: connect(/var/run/dovecot/auth-master) failed: No such file or directory
Sep 22 18:39:13 srv postfix/pipe[26890]: 0D17F19409E3: to=<john@mydomain.com>, relay=dovecot, delay=0.53, delays=0.39/0/0/0.14, dsn=4.3.0, status=deferred (temporary failure)

Dovecot died due to server timezone change.

I just got the same thing.  The issue for me was that Dovecot had stopped running because I had recently changed the server's timezone.  Here's the message I got when I restarted Dovecot:

---

Last died with error (see error log for more information): Time just moved backwards by 190 seconds. This might cause a lot of problems, so I'll just kill myself now.

http://wiki.dovecot.org/TimeMovedBackwards

---

How nice of it to do that for me without telling me.  :P

I dont't see the folder but i get an error

hello,

my now at this point of the tutorial but i get this error

Sep 24 21:14:21 mopple postfix/pickup[25739]: 96FA1C446E9: uid=0 from=<root>
Sep 24 21:14:21 mopple postfix/cleanup[25756]: 96FA1C446E9: message-id=<20110924191421.96FA1C446E9@mopple.s5y.de>
Sep 24 21:14:21 mopple postfix/qmgr[25738]: 96FA1C446E9: from=<root@mydomain.de>, size=395, nrcpt=1 (queue active)
Sep 24 21:14:21 mopple dovecot: deliver(name@mydomain.de): namespace configuration error: inbox=yes namespace missing
Sep 24 21:14:21 mopple dovecot: deliver(name@mydomain.de): Fatal: Namespace initialization failed
Sep 24 21:14:21 mopple postfix/pipe[25758]: 96FA1C446E9: to=<name@mydomain.de>, relay=dovecot, delay=0.02, delays=0.01/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure)

Can some tell me whats wrong in my config please?

 

Thanks an Greetings

Marcus
 

usergroups

Have the user to be in the group vmail

because i can't open mutt -f /var/vmail/domain/user/Maildir without root....

Pages