mail delivery system - wrong sender/recipient

Questions and answers about how to do stuff
Post Reply
gigabello
Posts: 9
Joined: 31 Aug 2017 15:17

mail delivery system - wrong sender/recipient

Post by gigabello »

Hello all,
In postfix mail server, I found some mail in queue, mails that have not been delivered for some reason, for example : attached to big, mailbox not found in exchange server, this is correct and it's not a issue.

But, Can I change the sender and recipient so that I can send these mails to an real address and be able to monitor the situation instead of going to inspect the postfix server queue?
I try to verify /etc/aliases and already modify first part of file but nothing ha changed

#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#

# Basic system aliases -- these MUST be present.
mailer-daemon: itc@mydomain.com
# postmaster: root
postmaster: itc@mydomain.com


Thank you in advance


From MAILER-DAEMON@mydomain.local (Mail Delivery System)
To root@mydomain.local
Date Mon, 19 Mar 2018 00:16:43 +0100 (CET)
Subject Undelivered Mail Returned to Sender
Message text
This is the mail system at host EFAserver.mydomain.local.

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

<root@mydomain.local> (expanded from <root>): host
virtual.smtp.net[xx.xxx.xxx.104] said: 454 4.7.1 <root@mydomain.local>:
Relay access denied (in reply to RCPT TO command)
Post Reply