PDA

View Full Version : MTA won't find user yet it exists - HELP! :S


vargadanis
20th April 2008, 17:06
Hi again..
I keep trying... maybe I will get an answer this time.
I have set up a system according to this (http://howtoforge.com/virtual-users-and-domains-postfix-courier-mysql-centos5.1) tutorial. It works ok. I can log on, I installed roundcube but I cant send mails.
in the DB I have my.domain.tld :
INSERT INTO `transport` (`domain`, `transport`) VALUES
('my.domain.tld', ':');

when trying to send an email to myself so from testuser@my.domain.tld to testuser@my.domain.tld I get this error message in the log:


Apr 20 10:02:11 danis postfix/cleanup[5816]: BE12E3FDA9F: message-id=<20080420140211.BE12E3FDA9F@my.domain.tld>
Apr 20 10:02:11 danis postfix/bounce[5832]: B232B3FDA9E: sender non-delivery notification: BE12E3FDA9F
Apr 20 10:02:11 danis postfix/qmgr[5263]: B232B3FDA9E: removed
Apr 20 10:02:11 danis postfix/qmgr[5263]: BE12E3FDA9F: from=<>, size=3406, nrcpt=1 (queue active)
Apr 20 10:02:11 danis postfix/local[5831]: BE12E3FDA9F: to=<testuser@my.domain.tld>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "testuser")
Apr 20 10:02:11 danis postfix/qmgr[5263]: BE12E3FDA9F: removed


I made the interesting part bold... How is that I dont have that user? I have him in the mysql database.
Whats up with this?

till
20th April 2008, 17:21
You dont have to insert anything in the transports table if this is a local domain. Instead you have to add this domain to the domains table and add the email account to the users table.

vargadanis
20th April 2008, 17:38
You dont have to insert anything in the transports table if this is a local domain. Instead you have to add this domain to the domains table and add the email account to the users table.

These are all done... Do u happen to have any other ideas?

vargadanis
20th April 2008, 18:17
Ok... I would love to swear now. I am very much ... annoyed but I got it working. Remember the warning part of the quote I posted inmy first post in this topic? Well that was the problem. I had my.domain.tld in main.cf of postfix as mydestination. Thats where it got screwd. Removed it and the
vserver server01 stop
vserver server01 start
Tried sending a message again, still did not work. I had the quota of 1000. Modified it to 10485760. Worked perfect...
Works perfect :)