I am configuring postfix and dovecot on my server, but for some reason I can't receive mails. I've followed these instructions for configuring the mailserver. I've tested with pingability.com that port 25 is open (didn't get any errors for the mail), and I am able to send mails. I just can't recieve them, I don't see them in the maildir and I don't see them on squirrelmail.
I am not really a linux expert, so can anyone help me to resolve this problem?
My OS is CentOS 5.5
edit1: According to the logfile /var/log/maillog the mail is received, but probably not deliverd. If I check the logfile directly after i've sent an email, the last lines of the logfile look like this:
Mar 27 23:59:24 vps4195 postfix/smtpd[15822]: connect from mailserver[ip]
Mar 27 23:59:25 vps4195 postfix/smtpd[15822]: 01EE0AD18170: client=server[ip]
Mar 27 23:59:25 vps4195 postfix/cleanup[15826]: 01EE0AD18170: message-id=<someid>
Mar 27 23:59:25 vps4195 postfix/qmgr[7544]: 01EE0AD18170: from=<emailaddress>, size=1980, nrcpt=1 (queue active)
Mar 27 23:59:55 vps4195 postfix/smtpd[15822]: disconnect from server[ip]
edit2: The logfile also contains many of these entries, but I don't really know what to do with them:
Mar 28 00:00:16 vps4195 postfix/virtual[17954]: fatal: bad string length 0 < 1: virtual_mailbox_base =
Mar 28 00:00:17 vps4195 postfix/master[7538]: warning: process /usr/libexec/postfix/virtual pid 17954 exit status 1
Mar 28 00:00:17 vps4195 postfix/master[7538]: warning: /usr/libexec/postfix/virtual: bad command startup -- throttling
edit3: I've fixed the previous error (added a virtual_mailbox_base to the main.cf file), but now the log file gives me this error when it tries to receive an email:
Mar 28 00:11:33 vps4195 postfix/virtual[3089]: E8025AD180BB: to=<email>, relay=virtual, delay=0, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "email")
Mar 28 00:11:33 vps4195 postfix/qmgr[3077]: E8025AD180BB: removed
edit4: got a little further this time, it looks like I missed a line in the main.cf, but then I got this error:
Mar 28 00:36:15 vps4195 postfix/qmgr[30545]: D7E6DAD18077: from=<mail>, size=755, nrcpt=1 (queue active)
Mar 28 00:36:15 vps4195 postfix/virtual[30610]: warning: recipient mail: not found in virtual_uid_maps
Mar 28 00:36:15 vps4195 postfix/virtual[30610]: D7E6DAD18077: to=<maill>, relay=virtual, delay=0.07, delays=0.05/0/0/0.01, dsn=4.3.5, status=deferred (mail system configuration error)
So I created the virtual_uid_maps and virtual_gid_maps entries in the main.cf file, and everything works now!