Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1248
  • Last Modified:

Get error "Deferred: Cannot assign requested address" when sending external mail via sendmail


When I send an email through the Ubuntu terminal I get the following listing in the mailq.

OS - Ubuntu 8.04.1

Thanks for your help,

mAB00wcv011175        5 Mon Nov 10 19:00 <user1@internaldomain.com>
                 (Deferred: Cannot assign requested address)

Open in new window

  • 2
1 Solution
What do you see in /var/log/maillog related to msgid mAB00wcv011175?

Smells like an IP address problem. Does this server have a static IP or does it get an address from DHCP? Do you have a line in your /etc/mail/sendmail.mc file that looks like something like this?

DaemonPortOptions=Port=smtp,Addr=a.b.c.d, Name=MTA

If so, is the Addr the same as the IP of the server? If so, try commenting that out and rebuilding the sendmail.cf file and restarting sendmail.
drew17Author Commented:
Thanks for your response, I was actually able to correct this issue.

However I have another issue that you may be able to help with. I am having trouble configuring sendmail to authenticate to an external smtp server. I want my server to relay messages to my ISP's mail server (outgoing only).

Thanks again for your response.
Just set a smart_host and authinfo line in /etc/mail/sendmail.mc:

FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')

As for the auth, you'll need to create a file /etc/mail/authinfo:

AuthInfo:yourisp.com "U:usernameOrEmail" "P:password" "M:PLAIN"
AuthInfo: "U:usernameOrEmail" "P:password" "M:PLAIN"

Then just compile the authinfo.db file (on redhat/fedora/centos just run "make" in the /etc/mail folder) and restart sendmail.


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now