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

Posted on 2008-11-10
Last Modified: 2013-12-18

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 <>

                 (Deferred: Cannot assign requested address)


Open in new window

Question by:drew17
    LVL 26

    Expert Comment

    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/ 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 file and restarting sendmail.

    Author Comment

    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.
    LVL 26

    Accepted Solution

    Just set a smart_host and authinfo line in /etc/mail/

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

    As for the auth, you'll need to create a file /etc/mail/authinfo: "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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How does your email signature look on mobiles?

    Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

    The Microsoft Exchange server database may become damaged or corrupted due to many reasons, such as system failure. When this happens, it is usually urgent to restore the system to a stable and working state. There are different symptoms and causes …
    Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
    Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
    In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now