PHP email to local user denied

jw00dy

Verified User
Joined
Dec 6, 2004
Messages
179
Location
Utah, USA
I am using php to send an email to a locally hosted (on the same box) email account, but it bounces back with permanent errors and i can't figure out what the deal is.

it sends just fine to users that are not local.

the error in exim -> mainlog is:
Code:
2005-11-18 23:53:02 1EdMas-0001oP-Rf ** [email][email protected][/email] 
 F=<[email protected]> R=virtual_aliases:
2005-11-18 23:53:02 1EdMas-0001oS-Sr <= <> R=1EdMas-0001oP-Rf 
 U=mail P=local S=1718 T="Mail delivery failed: returning 
 message to sender" from <> for [email][email protected][/email]

So in looking at some other threads, I looked at the exim.conf file and found that it looks in the virutal alias' file.

This is what the virtual alias file for this domain has:
Code:
mainuser:mainuser
*::fail:
I'm thinking I probably need to add something here, but I'm not sure what and what the syntax is?

Can someone shed some light? Am I even barking up the right tree?

TIA
 
Last edited:
I think this is saying that the "[email protected]" account doesn't exist. What does the bounce message say about that?

The line about virtual_aliases just means that it's the last director that matched for the domain, and since the account doesn't exist and all other accounts should "fail" (as opposed to being caught by a catch-all or forwarded somewhere else), the message was bounced.

Is "[email protected]" a valid email account on the server?
 
jw00dy said:
This is what the virtual alias file for this domain has:
Code:
mainuser:mainuser
*::fail:
I'm thinking I probably need to add something here, but I'm not sure what and what the syntax is?
Do NOT add anything here. DA adds forwarders here; if you need a forwarder, let DA create it for you.

ballyn is absolutely correct; it appears that you don't have either an email account or a forwarder for "sales".

Do you have this file:

/var/spool/virtual/example.com/sales

(where example.com is replaced by the correct domain name)

???

If not, then you need to create the user, also from within the DirectAdmin control panel.

Jeff
 
A HA! appearently, I just needed to bounce this off someone, so thank you for your time, and sorry for the time you wasted. though you both helped me.

Appearently, the account store and sales are not the same one :rolleyes:

I'm a bonified idiot. :eek:

It's working now.
 
Back
Top