PDA

View Full Version : Resetting the reverse DNS


Eliteskills
2004-07-24, 18:08 PM
Anyone know how to make the reverse dns change. I tried editing the hosts file with vim over SSH but I didn't see a change when i did a lookup. Anything that can be done over webmin?

If I were to send a message with the sendmail thing it sends it as theuser@server1.eliteskills.com instead of just theuser@eliteskills.com. I'm not sure how this works yet.

Tino Didriksen
2004-07-24, 18:20 PM
You can only change the PTR (reverse DNS) record from the MyServerBeach DNS Tool. There's a button aptly named "Request A PTR".

Eliteskills
2004-07-24, 19:10 PM
Thanks! I think this is more a sendmail problem now. How do I get it so that when I send a message it's as user@eliteskills.com rather than user@server1.eliteskills.com ..?

bow-wow
2004-07-24, 22:52 PM
Of course there are multiple ways to do this, you could just have sendmail masquerade as eliteskills.com, but I would setup generics table and generics domains options in sendmail.

add these to your /etc/mail/sendmail.mc

FEATURE(`genericstable', `dbm /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl

remake sendmail.cf:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

now edit /etc/mail/generics-domains and add domains (one domain per line) that you want to replace with something else (in your case, server1.eliteskills.com )

now edit /etc/mail/genericstable with the correct aliases for each user. Format is:

localusername somealias@somedomain.com
theuser theuser@eliteskills.com

then make /etc/mail/genericstable.db


you can get more infor here:
http://www.sendmail.org/virtual-hosting.html

Eliteskills
2004-07-28, 20:26 PM
Thanks a lot! It worked.


Sorry for the late reply. I just installed debian on my home computer so I'm in the library right now as I have discovered my laptop network card is in fact the devil.

SylvrFalkon
2004-10-08, 01:24 AM
I have searched my server for all sendmail files and they doesnt appear to be a .mc. Where can I find it so I can modify my system as well?

Thanks...

James :poke:

bow-wow
2004-10-08, 02:42 AM
SylvrFalkon, you're a cpanel user right? That means your mail server is exim, not sendmail, so the above does not apply to you.

I don't deal with exim much, but google found this for me... maybe it will help you out:


In exim, entries are appended at the end of /etc/exim.conf:

arf@localhost arf@doghouse44.com Ff
woof@localhost bark@iliketowag.com Ff