Link to home
Start Free TrialLog in
Avatar of BToTheAToTheBABA
BToTheAToTheBABAFlag for United States of America

asked on

Return-Path settings. qmail-send program. Unreturnable address rejected.

Hi,
    Ive bought a VPS hosting with 2-IP addresses. (Plesk Control Panel)

1st IP address is set to domain -> test.domain.jp (external DNS not assigned)
( test.domain.jp will not be resolved )

2nd address is my original online server with proper DNS settings.

My plesk control panel is showing both this domain &
- Mail service has been enabled for test.domain.jp
- Mail service has been disabled for www.domain.jp


Inside www.domain.jp I have PHP website which uses mail() function.

Im setting the and From: ReplyTo: to support@domain.jp and this is working fine.
But the Return-Path which is set automatically by the server becomes
Return-Path:<annonymous@test.domain.jp>

Mail is sent sucessfully & received in most cases. But some gives the error attached in code.
Because the Domain of sender address annonymous@test.domain.jp does not exist.

How to fix this or atleast change this Return-Path to annonymous@domain.jp
Hi. This is the qmail-send program at test.domain.jp.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<receiving@nifty.com>:
Connected to 201.258.138.10 but sender was rejected.
Remote host said: 553 5.1.8 <anonymous@test.domain.jp>... Unreturnable address rejected

--- Below this line is a copy of the message.

Return-Path: <anonymous@test.domain.jp>
Received: (qmail 10186 invoked by uid 23); 3 Sep 2010 11:64:25 +0900
Date: 3 Sep 2010 11:64:25 +0900
To: receiving@nifty.com
Subject: =?UTF-8?B?aXdpbmUuanAg44GU5rOo5paH44GC44KK44GM44Go44GG44GU44GW44GE?=  =?UTF-8?B?44G+44GZ44CA44GK5oyv6L6844G/5L6d6aC8?=

Open in new window

Avatar of BToTheAToTheBABA
BToTheAToTheBABA
Flag of United States of America image

ASKER

- Mail service has been enabled for test.domain.jp
- Mail service has been disabled for www.domain.jp

If I change this the other way, Mail send stops working completely.
Because my mail server & accounts are managed separately by google.com

So google.com will receive any email sent to support@domain.jp.

ASKER CERTIFIED SOLUTION
Avatar of Daniel McAllister
Daniel McAllister
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>  C) fix your call to the mail() function so that you use a non-default (anonymous@hostname) FROM value


From & ReplyTo were initilized before.

But there is also a attibute called "Return-Path" which i set to same value as "From" value.


I know the difference between From & ReplyTo.

But still I don't know the purpose of "Return-Path".