I need my mail! (desperate call for help with sendmail)
Hello everyone,
Well, as you can see, I have a problem with my sendmail. I have installed it and am able to send mail, but there's one catch to it: my e-mail address figures as "user@host.domain.com" instead of "user@domain.com". This prevents me from sending e-mail, as most of the servers check to see whether the "host.domain.com" is a valid domain - which is not. However, if they checked for "domain.com", that is a valid domain and well recognized. I am trying to configure my sendmail to leave out the "host" part when constructing my e-mail address, so that it looks as "user@domain.com". Unfortunately I seem to be looking in all the wrong places, even though I have tried reading most FAQs related to sendmail - I still have no answer to my question. At the moment, I am using "nail" for sending/reading e-mails which allows me to specify a "from" address, but I'd like to make this configuration in sendmail and mail client independent. I am using a Linux From Scratch "distribution", I know where my files are, I know that I should change something in /etc/mail/sendmail.mc, but what is the option? Thanks in advance, hope to get this working soon. |
Just wanted to also mention that I do intend to read up on all the options of sendmail, but at the moment I have other priorities... The only thing I hope to fix is this problem, the rest I will probably be able to figure out by myself.
|
Try adding this to your sendmail.mc and then recreate your .cf file.:
define(`confDOMAIN_NAME', `domain.com')dnl |
werid! i never had that problem! let us know how you get on!
G |
:( Afraid that didn't work out... Sendmail manages to get the domain name from the system, that's not the problem, the problem is it reports my e-mails coming from user@hostname.domainname instead of what I want (user@domainname). That option just "forces" the domain name to "domain.com".
|
what does your local-host-names file and hosts files look like?
G |
local-host-names: Kamona
(the same as my hostname) hosts (i'm assuming we're talking about /etc/hosts) has: 127.0.0.1 localhost.localdomain localhost 192.168.0.3 Kamona.CyberPunksNation.org Kamona 81.57.99.95 Kamona.CyberPunksNation.org Kamona Probably should have mentioned this as well, I've installed sendmail following these instructions: http://linuxfromscratch.mirror.ac.uk.../sendmail.html |
Ok... after countless hours of reading and trying and... I found it.
I had to add these two lines to my sendmail.mc (do this after copying the general-linux.mc): MASQUERADE_AS(`domain.com')dnl FEATURE(masquerade_envelope)dnl And... it worked! |
All times are GMT -5. The time now is 04:52 AM. |