Results 1 to 5 of 5

Thread: Root mail redirection

  1. #1
    Join Date
    Sep 2009
    Location
    Alverca do Ribatejo, Portugal
    Posts
    53

    Exclamation Root mail redirection

    Hello all!

    I've used Yast's Mail Transfer Agent (MTA) module to configure the redirection of the root's mail.

    In the MTA module I've only filled the "Forward root's mail to" field with my e-mail address.

    The problem is that in my e-mail account I receive the following:
    Code:
    This is the mail system at host SERVER01.lan.
    
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to postmaster.
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
                       The mail system
    
    <my_mail@my_domain.pt> (expanded from <root>): host
        mail.my_domain.pt[MY.IP.ADR.ESS] said: 550-Verification failed for 
        <root@SERVER01.lan> 550-The mail server could not deliver mail to
        root@server01.lan.  The account or domain may not exist, they may be
        blacklisted, or missing the proper dns entries. 550 Sender verify failed
        (in reply to RCPT TO command)
    And attached comes the message that I should receive.

    Here is the mail as seen by the mail command executed as root:
    Code:
    From MAILER-DAEMON  Fri Sep 25 11:32:05 2009
    X-Original-To: root@SERVER01.lan
    Delivered-To: root@SERVER01.lan
    Date: Fri, 25 Sep 2009 11:32:05 +0100 (WEST)
    From: MAILER-DAEMON@SERVER01.lan (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: root@SERVER01.lan
    Auto-Submitted: auto-replied
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
            boundary="29CA3334E224.1253874725/SERVER01.lan"
    
    Part 1:
    Content-Description: Notification
    Content-Type: text/plain; charset=us-ascii
    
    This is the mail system at host SERVER01.lan.
    
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to postmaster.
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
                       The mail system
    
    <my_mail@my_domain.pt> (expanded from <root>): host
        mail.my_domain.pt[MY.IP.ADR.ESS] said: 550-Verification failed for
        <root@SERVER01.lan> 550-The mail server could not deliver mail to
        root@mv-server01.lan.  The account or domain may not exist, they may be
        blacklisted, or missing the proper dns entries. 550 Sender verify failed
        (in reply to RCPT TO command)
    
    Part 2:
    Content-Description: Delivery report
    Content-Type: message/delivery-status
    
    
    Part 3:
    Content-Description: Undelivered Message
    Content-Type: message/rfc822
    
    From root@SERVER01.lan Fri Sep 25 11:32:02 2009
    Delivered-To: root@server01.lan
    From: root@SERVER01.lan
    To: root@SERVER01.lan
    Subject: Cron <root@SERVER01> /root/scripts/test/test.sh
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/root>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=root>
    X-Cron-Env: <USER=root>
    Date: Fri, 25 Sep 2009 11:32:01 +0100 (WEST)
    
    OUTPUT!!!
    Any ideia of what's wrong?

    Thank you.

    Best regards,
    Jorge

  2. #2
    Camalen NNTP User

    Default Re: Root mail redirection

    jorgeraimundo wrote:

    > Hello all!
    >
    > I've used Yast's Mail Transfer Agent (MTA) module to configure the
    > redirection of the root's mail.


    I think, unless your are using virtual domains, the easiest way to get that
    done is by using /etc/aliases (see the first line for root's redirection
    mail to another system user).

    I've got there:

    ***
    # The "\root" will make sure that email is also delivered to the
    # root-account, but also forwared to the user "joe".
    #root: joe, \root

    root: hpc02
    ***

    Where "hpc02" is my common user.

    After making any change in this file, run "postalias"... mmm, better read me
    manual ("man aliases" and "man postalias" just to be sure).

    > <my_mail@my_domain.pt> (expanded from <root>): host
    > mail.my_domain.pt[MY.IP.ADR.ESS] said: 550-Verification failed for
    > <root@SERVER01.lan> 550-The mail server could not deliver mail to
    > root@server01.lan. The account or domain may not exist, they may be
    > blacklisted, or missing the proper dns entries. 550 Sender verify failed
    > (in reply to RCPT TO command)


    A 550 error, as the message is telling you, indicates postfix cannot
    recognize the sender so returns the message.

    Maybe you forgot to run any "postfix reload" to force Postfix to re-read the
    configuration files and lookup tables? :-?

    P.S. Be careful with yast2 modules because after using them to configure any
    service you have to take care about not editing manually the files of that
    service, as they can easily get "messed-up".

    Greetings,

    --
    Camalen

  3. #3
    Join Date
    Sep 2009
    Location
    Alverca do Ribatejo, Portugal
    Posts
    53

    Default Re: Root mail redirection

    Hello Camalen!

    Thanks for your reply.

    In my /etc/aliases file I have the following:

    Code:
    # The "\root" will make sure that email is also delivered to the
    # root-account, but also forwared to the user "joe".
    #root:          joe, \root
    
    root:   my_mail@my_domain.pt, \root
    I ran the "postalias /etc/aliases" command and also the "postfix reload" command but I still get the same message.

  4. #4
    Camalen NNTP User

    Default Re: Root mail redirection

    jorgeraimundo wrote:

    > Hello Camalen!
    >
    > Thanks for your reply.
    >
    > In my /etc/aliases file I have the following:
    >
    >
    > Code:
    > --------------------
    >
    > # The "\root" will make sure that email is also delivered to the
    > # root-account, but also forwared to the user "joe".
    > #root: joe, \root
    >
    > root: my_mail@my_domain.pt, \root
    >
    > --------------------


    Are you delivering to a non-local account?

    Then you have to setup postfix to go-out with a real e-mail address, not
    a "fancy" one. Your mailserver located at "my_domain.pt" is rejecting
    that "fancy" address :-)

    > I ran the "postalias /etc/aliases" command and also the "postfix
    > reload" command but I still get the same message.


    Take a read into this doc:

    http://www.postfix.org/SOHO_README.html#fantasy

    Greetings,

    --
    Camalen

  5. #5
    Join Date
    Sep 2009
    Location
    Alverca do Ribatejo, Portugal
    Posts
    53

    Default Re: Root mail redirection

    Quote Originally Posted by Camalen View Post
    Then you have to setup postfix to go-out with a real e-mail address, not
    a "fancy" one. Your mailserver located at "my_domain.pt" is rejecting
    that "fancy" address :-)

    Take a read into this doc:

    Postfix Small/Home Office Hints and Tips
    Done! Now I receive it on my external mail account.

    Thank you very much!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •