PDA

View Full Version : SMTP Question


donb
04-10-06, 08:57 PM
In my order confirmation I send an email of the order to the customer. This has been working perfectly for years until the ip address of the server was changed last week. Now we get an error message at the top of the page that looks like this:

/mn/t7_bkorder3.pl: Line 625: MvSMTP: Runtime Error: Error sending
recipient 'customer@yahoo.com': sorry, that domain isn't in my list
of
allowed rcpthosts (#5.7.1)

We do not get this error if we enter an address that has it root on our domain, such as: donb@farm-home.com as the orderer.

The Question! Does the miva smtp send the message as if originating at my domain ( in this case mail.farm-home.com ) or does it try to send it as if the sender is the customers domain? My ISP is trying to tell me that it is being sent as if from the customer domain and not ours.


<MvASSIGN NAME ="mail_it_to" VALUE="{glosub(ordmaster.d.or_email,'~','')}">
<MvASSIGN NAME ="mailfrom" VALUE="{'order@farm-home.com'}">
<MvASSIGN NAME ="mail_bcc" VALUE="{'donb@farm-home.com,service@farm-home.com'}">

<MvSMTP
TO="&[mail_it_to]"
FROM="&[mailfrom]"
CC="&[mail_bcc]"
MAILHOST="198.145.197.6"
SUBJECT="&[mailsubject]">

This is in version 3.93

Thanks

Donb

Vic - WolfPaw Computers
04-10-06, 09:02 PM
Depends on the mail server.

If the send from address does not match your domain, it looks like spam. So this is not a good practice at all in the first place.

Check with your host to see if your mail host has changed, or if perhaps the user MIVA runs as does not have permissions to relay email.

The send to email should not be being filtered as a relay, since the recipient should not be restricted to being on your domain. Could be a mail server misconfiguration.

ILoveHostasaurus
04-10-06, 10:36 PM
That error message comes from the qmail mail server software. The most common cause of this is putting in the mail server you use for your own sending and receiving insetad of the one your site needs to use to be able to send outbound emails; they are most often different systems or at least different addresses such as localhost versus mail.mydomain.com. You could try "localhost" as the mail server just to see if it works but if not your host will need to give you the correct value.