Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The problem may be that sendmail is not logging on to akamai. akamai should (TM) tell you their requirements.
Please take a backup of any files that are changed iif you try the following steps.
Typically you need to find the .mc file that your /etc/mail/sendmail.cf is built from, modify it adding these lines (the backquote ` must be a backquote)
Code:
define(`SMART_HOST',`<FQDN of akamai's SMTP server>')
FEATURE(authinfo)
Then, as root, process it into /etc/mail/sendmail.cf using something like
Code:
m4 <whatever>.mc > /etc/mail/sendmail.cf
Then create /etc/mail/authinfo, readable only by root containing
Then, as root, process it into /etc/mail/authinfo.db:
Code:
root:/etc/mail# makemap hash authinfo < authinfo
Restart sendmail and try again.
This time sendmail should be able to log on to akamai but they may check the from address and reject "local.com" as invalid. My blog has a partial solution to this problem -- "good enough" if it's OK for sendmail to hang for ~1 minute when it starts and every time it sends a mail!
Finally, the root account is special; I found I had to use mailx's -f option to give a fuller "From" address; sending mail from a non-root address was straightforward.
This is a "work in progress" for me; I am very interested to know what you find out and to find out how to make sendmail work while keeping the /etc/hosts entry for the local machine as localhost and localhost,localdomain
The problem is that my machine should not go to xyz.akamai.net, I mean I'm using the domain name www.local.com as a FQDN for my server over my LAN, xyz.akamai.net is what www.local.com resolve to, in my case, I want it to resolve to 127.0.0.1, all other programs including the webserver see www.local.com as the local server but sendmail sees it as the real www.local.com !!!
as I said, it looks like sendmail is not interested in the /etc/hosts file
The sendmail program expects DNS to be configured correctly on the DNS server. The MX record for your domain must point to the IP address of the mail server.
The program also expects the files used by the mail server's DNS client to be configured correctly. The first one is the /etc/resolv.conf file in which there must be a domain directive that matches one of the domains the mail server is expected to handle mail for.
Finally, sendmail expects a nameserver directive that points to the IP address of the DNS server the mail server should use to get its DNS information.
For example, if the mail server is handling mail for my-site.com and the IP address of the DNS server is 192.168.1.100, there must be directives that look like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.