openSUSE Forums > Network/Internet » Root mail redirection

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-Sep-2009, 06:31
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 45
jorgeraimundo hasn't been rated much yet
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
Reply With Quote
  #2 (permalink)  
Old 25-Sep-2009, 13:42
Camaleón
Guest
 
Posts: n/a
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,

--
Camaleón
Reply With Quote
  #3 (permalink)  
Old 28-Sep-2009, 04:56
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 45
jorgeraimundo hasn't been rated much yet
Default Re: Root mail redirection

Hello Camaleón!

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.
Reply With Quote
  #4 (permalink)  
Old 28-Sep-2009, 05:57
Camaleón
Guest
 
Posts: n/a
Default Re: Root mail redirection

jorgeraimundo wrote:

> Hello Camaleón!
>
> 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,

--
Camaleón
Reply With Quote
  #5 (permalink)  
Old 28-Sep-2009, 09:27
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 45
jorgeraimundo hasn't been rated much yet
Default Re: Root mail redirection

Quote:
Originally Posted by Camaleón 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!
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2