Linux email problem

Posted on 2006-04-02
Last Modified: 2013-12-15
I installed a inux mail server on my server

Usinf Fedora 4

I had problems sending email from an outside address which seems to be taking care of but now when I try

to send a reply to the out side address I get

Your message did not reach some or all of the intended recipients.

      Subject:      RE:
      Sent:      4/2/2006 10:14 AM

The following recipient(s) could not be reached:

      'Andrew Renolds' on 4/2/2006 10:14 AM
            554 <>: Relay access denied

I am using postfix any ideas
Question by:arahming
    LVL 51

    Expert Comment

    you need to ask the admin of the SMTP relay you configured how to use that server, probably you need to authenticate or the relay needs to allow access from your server
    LVL 1

    Author Comment

    I'm confused I had exchange set up last week and everything worked fine. I installed linux and now the box recieves but will not send...

    I am a Linux novice....
    LVL 16

    Expert Comment


    How are you sending that email? is their a user connecting in remotly and sending it? what mail server are you using?
    LVL 2

    Expert Comment

    You must have mail relying enabled in your server configuration. For most servers it is off by default. Write what is the name of your server. It it's postfix I can give my configuration file for checkout.
    LVL 25

    Accepted Solution

    In postfix, there are various way to allow users to use your email server for sending.  The most common is permit_mynetworks.  Where any network declared in the mynetworks parameter are allowed.  If your IP isn't in one of those approved networks, then you must be allowed another way.  I use permit_sasl_authenticated as my secondary authentication.  This means  you need to setup server authentication on the client as well.  If you wish to use SMTP AUTH as an approval mechanism you need to setup a few items

    cd /etc/postfix
    mkdir sasl
    vi smtpd.conf

    smtpd.conf contents
    mech_list:         plain login
    pwcheck_method:    saslauthd
    log_level:      3
    You can have other auth mechanisms listed, but for Outlook you need those two. Other would be cram-md5 and digest-md5 etc.
    Now you need to make sure that saslauthd daemon is installed and running.
    Now in /etc/sysconfig/saslauthd, you should have
    # $Id: saslauthd.sysconfig,v 1.1 2001/05/02 10:55:48 wiget Exp $
    # Authentications mechanism (for list see saslauthd -v)

    # Hostname for remote IMAP server (if rimap auth mech is used)
    # Ldap configuration file (if ldap auth mech is used)

    # Extra options (for list see saslauthd -h)
    the SASL_AUTHMECH needs to be shadow.  This mech just makes it easier because it will use the system shadow file for authentication.
    So long as your /var/spool and the /var/lib directories are on the same partition this will work.  saslauthd creates a hard link file for postfix to use to check with saslauthd different credentials.  hard links cannot be created cross partition so thus won't work.

    If this isn't the way you want to go let us know.  But for remote users, this is what I recommend.  And once you get that working you should configure SSL usage
    LVL 1

    Author Comment

    Anyway I attempted whats listed above to no avail I am still getting the error was going to try pop before smtp but that doesn't seem to work either web mail works great. I am starting to understnad why you pay so much for exchange take 1/2hour to confiure this is going on two weeks
    LVL 12

    Expert Comment

    try add the domain into your access database, normally it's in /etc/mail

    edit the access file as below         relay

    after add the above line run makemap hash access.db<access.   <----- this will write what you add into the access database

    after that try again.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    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

    7 Experts available now in Live!

    Get 1:1 Help Now