Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with sendmail using 2 domain names

Status
Not open for further replies.

bluelake

Technical User
Jan 20, 2003
57
CN
my solaris 8 box is running sendmail 8.12.6, it was configured using 2 domain names:eek:ld.com and new.com, each domain works correctly.

now i am going to stop using the domain name 'old.com',how can i configure the sendmail so it can automatically reply the user who sending mail to the old.com ,tell them the old.com domain is stopped using or other infomation.

thanks!
any help will be appreciated!
 
Hello,

I supose there are "many" options to satisfy your needs but maybe this can help you: mailertable feature, not enabled by default on sun's sendmail. You'll have to build your own sendmail.cf file. An esay way to build you own file is to use webmin GUI, and from there modify the default settings to include this feature.

I didn't try this feature, so maybe my explanations are not 100% OK, so you'd better lokk for more info about it on oreilly's sendmail book,....

Once you've enabled this feature, mailertable rules will be added to your sendmail.cf file, and you'll be able to use the error delivery agent for issuing messages. This way you can use /etc/mail/mailertable to specify something like:

.your_domain error:nohost mail to your_domain is disabled

Then build the mailertable database:

makemap hash /etc/mail/mailertable < /etc/mail/mailertable

And restart sendmail so the changes take effect.

Anyway, better if you check this feature sintaxis and error delivery agent sintaxis too. Do you have access to any sendmail book?

If I have time, I'll try this feature and post the results, but if you get success earlier, please post!!!!!

Hope to help you. Bye and good luck,

jmiturbe

 
jmiturbe,it works,thank for your guidance!

but,there still some other minor problem.

can i custom the automatically reply mail's subject ,or even custom the content to make it more clear and simple to the recipients(cause the content of the auto reply also has much other infomation which makes my notice not so obviously )?

thanks for your help!











 
Hello,

I'm sure it's possible, but don't know how. I'll try to
investigate about this.

Search about error delivery agent on sendmail documentation, because I think that the solution is on the configuration, parameters, options,... of this delivery agent.

Can you post the answer obtained when mailing the disabled domain? I ask for this because I haven't tried this option and I would like to see the results.

Bye,

jmiturbe
 
====below is my yahoo account to the disabled domain====

date 11 Mar 2003 10:12:04 -0000
sender: MAILER-DAEMON@yahoo.com
recipient: huxu@yahoo.com.cn
subject: failure delivery

Message from yahoo.com.
Unable to deliver message to the following address(es).

<huxu@frdc-fujitsu.com.cn>:
202.106.154.132 does not like recipient.
Remote host said: 553 5.3.0 <huxu@frdc-fujitsu.com.cn>... this domain name do not in use anymore.
Giving up on 202.106.154.132.

--- Original message follows.

Return-Path: <huxu@yahoo.com.cn>
Message-ID: <20030311101149.55436.qmail@web15204.mail.bjs.yahoo.com>
Received: from [202.106.163.71] by web15204.mail.bjs.yahoo.com via
HTTP; Tue, 11 Mar 2003 18:11:49 CST
Date: Tue, 11 Mar 2003 18:11:49 +0800 (CST)
From: <huxu@yahoo.com.cn>
Subject: test for mailertable
To: huxu@frdc-fujitsu.com.cn
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary=&quot;0-859591853-1047377509=:53673&quot;
Content-Transfer-Encoding: 8bit

--0-859591853-1047377509=:53673
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit

this is a test for my new mailertable configuration.
=========================end==========================

because the content of the autoreply mail include the information of the sender's domain,(in the above case: yahoo.com.cn),i think the content and the subject cannot be controled by our server,but the sender's server.my error code defined in mailertable is just querried quoted by the sender's server.

i use another domain's mail account to send the test mail to the disabled domain,and got the completely different subject and content of the auto-reply mail,cause it is in chinese,i donnot post it.
 
Hello,

You are right. Most of the info displayed concerns to the sender's server.

Logically when you use a server for sending mail, this server is the responsible of the delivering, the retrying,... and if all fails, of the error response.

The only thing you can modify is the line that explains remote host said:...... But this is very usefull information, because is explains the reason and informs the sender that the domain is not in use anymore, excluding other source of email rejection.

Hope to help you. Bye,

jmiturbe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top