Sending external email from Debian Box

Posted on 2010-01-03
Last Modified: 2013-12-16
This should be really simple but I can't find a simple solution.

Got a basic Debian box and I want to send email from the command line
 # mail .....

When I do so, I get "Mailing to remote domains not supported".
The Exim and other configuration seem very complex - I just want to send the email

How can I turn off the remote domain block?  I can use an external SMTP relay if that helps.

Question by:brothertom
    LVL 7

    Expert Comment


    Author Comment

    Thanks for the link - I'll check out it and get back to you.
    LVL 1

    Accepted Solution

    You need to either configure an installed MTA (Mail Transfer Agent) or install one.

    For a machine where you're not intending to run a full blown mail server, I recommend using a "simple" MTA that doesn't do local mail delivery on the machine to local users, but sends all mail off (usually through your "regular" mail server) elsewhere, for security and the KISS principal.

    Table 6.4 in the MTA section of the Debian Reference Manual provides a list of choices for MTA in Debian:

    You might consider the "ssmtp" package vs. configuring a more full-featured MTA, if all you're trying to do is get mail to deliver OFF/AWAY from this machine.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Today, security is a big concern in an organization to prevent sensitive data leakage. In Outlook you can secure your Outlook items (emails, calendars, contacts and other stuff) using various techniques like by marking item as private, or you can pu…
    Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
    The purpose of this video is to demonstrate how to set up a Mailchimp Template which will let the user create a uniform look for all of their campaigns. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mail…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    729 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

    20 Experts available now in Live!

    Get 1:1 Help Now