Unknown user problem Postfix

I am using the format name@domain for the username. If I send an email from outside to an e-mail address it works without problems but when I send an e-mail form an user of the domain to an other user of the domain I get some user missing error.

Mar 4 19:32:10 autohut postfix/local[5987]: 61A2E723CB6: to=office@autohut.ro, relay=local, delay=0, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: “office”)

I am not sure why postfix is looking for office and not office@autohut.ro as user.

Can somebody send my in the right direction?

Thanks

Can you post which email addresses from and to you exactly tried to send?

Also please post the full log excerpt from the delivery attempt, and please put it in [code][/code] tags. The contents of the file /etc/postfix/virtual would be interesting too (you can edit it afterwards, since it contains all your email addresses).

I am trying to send a mail using mail PHP to a local e-mail address called office@domain.com

The address exists and it works if I send form an other server to that address but if I send from the same host where the e-mail server for that address resides is not working.

Okay that’s good, now please answer the second half of my post. :slight_smile:

office@domain.ro	office-domain.ro

This is the part regarding the office adress. Also there are 2 linux users with the same UID
office@domain.ro and office-domain.ro I really don’t understand why is the system looking after an office user.

office@domain.ro	office-domain.ro

This is the part regarding the office address. Also there are 2 linux users with the same UID
office@domain.ro and office-domain.ro I really don’t understand why is the system looking after an office user.

Can you please answer all my questions, otherwise I can’t help you. I can’t guess what’s going wrong really:

Please post the full mail log excerpt from the delivery attempt, and please put it in [code][/code] tags, and please post the contents of the file /etc/postfix/virtual.

This is the mail log:

Mar 15 23:07:15 autohut postfix/pickup[18247]: 3965573366E: uid=1000 from=<autohut>
Mar 15 23:07:15 autohut postfix/cleanup[18033]: 3965573366E: message-id=<20140315210715.3965573366E@autohut.ro>
Mar 15 23:07:15 autohut postfix/qmgr[3598]: 3965573366E: from=<autohut@autohut.ro>, size=359, nrcpt=1 (queue active)
Mar 15 23:07:15 autohut postfix/local[18240]: 3965573366E: to=<office@autohut.ro>, orig_to=<comenzi@autohut.ro>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "office")
Mar 15 23:07:15 autohut postfix/cleanup[18033]: 3AEA9733722: message-id=<20140315210715.3965573366E@autohut.ro>
Mar 15 23:07:15 autohut postfix/local[18240]: 3965573366E: to=<comenzi-autohut.ro@autohut.ro>, orig_to=<comenzi@autohut.ro>, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (forwarded as 3AEA9733722)
Mar 15 23:07:15 autohut postfix/qmgr[3598]: 3AEA9733722: from=<autohut@autohut.ro>, size=495, nrcpt=1 (queue active)
Mar 15 23:07:15 autohut postfix/cleanup[18033]: 3B51A733723: message-id=<20140315210715.3B51A733723@autohut.ro>
Mar 15 23:07:15 autohut postfix/bounce[18450]: 3965573366E: sender non-delivery notification: 3B51A733723
Mar 15 23:07:15 autohut postfix/qmgr[3598]: 3B51A733723: from=<>, size=2114, nrcpt=1 (queue active)
Mar 15 23:07:15 autohut postfix/qmgr[3598]: 3965573366E: removed

In the post above you have the content of the /etc/postfix/virtual file.

The “virtual” file contains only that one line for you? That’s a bit odd. I’d expect something with “comenzi” in it, since according to your log, the mail was to be sent to that address (“comenzi@autohut.ro”), and being redirected to “office@autohut.ro”. Somewhere in your Postfix config that redirection should be defined.

this is the content of the file:
I am also not able to forward any mail from the office to for example an other autohut address:


autohut@autohut.ro	autohut
beta@autohut.ro	beta.autohut
store@autohut.ro	store.autohut
postmaster@autohut.ro	autohut@autohut.ro
webmaster@autohut.ro	autohut@autohut.ro
hostmaster@autohut.ro	autohut@autohut.ro
abuse@autohut.ro	autohut@autohut.ro
autohat.ro	autohat.ro
webmaster@autohat.ro	autohut@autohut.ro
autohut@autohat.ro	autohut
store@autohat.ro	store.autohut
abuse@autohat.ro	autohut@autohut.ro
hostmaster@autohat.ro	autohut@autohut.ro
postmaster@autohat.ro	autohut@autohut.ro
beta@autohat.ro	beta.autohut
mysql.autohut.ro	mysql.autohut.ro
hostmaster@mysql.autohut.ro	autohut@autohut.ro
webmaster@mysql.autohut.ro	autohut@autohut.ro
abuse@mysql.autohut.ro	autohut@autohut.ro
postmaster@mysql.autohut.ro	autohut@autohut.ro
comunicare@autohat.ro	comunicare-autohut.ro
comunicare@autohut.ro	comunicare-autohut.ro
webmail.autohut.ro	webmail.autohut.ro
webmaster@webmail.autohut.ro	autohut@autohut.ro
hostmaster@webmail.autohut.ro	autohut@autohut.ro
abuse@webmail.autohut.ro	autohut@autohut.ro
postmaster@webmail.autohut.ro	autohut@autohut.ro
razvan@autohat.ro	razvan-autohut.ro

daniel@autohut.ro	daniel-autohut.ro
daniel@autohat.ro	daniel-autohut.ro
razvan@autohut.ro	razvan-autohut.ro
comenzi@autohut.ro	comenzi-autohut.ro
comenzi@autohat.ro	comenzi-autohut.ro
office@autohat.ro	office-autohut.ro
alexandru.stoinea@autohut.ro	alexandru.stoinea-autohut.ro
alexandru.stoinea@autohat.ro	alexandru.stoinea-autohut.ro
office@autohut.ro	office-autohut.ro