Maybe you can use your customized bounce template. There is a default
bounce template: bounce.cf.default, change the sender and content with what
you want. And set below setting in your main.cf:
bounce_template_file = /path/to/bounce_template_file
Regards,
King
2013/8/16 Wietse Venema <[email protected]>
> Vijay Rajah:
> > Hello List,
> >
> > I have a Postfix 2.11 mail server that receives mail to some of my
> personal
> > domains and delivers it via lmtp to dovecot
> > This is a centos 6.4 server that has a hostname of vrajah-5.localdomain
> >
> > The myhostname parameter and the myorgin parameter in main.cf is set to
> the
> > real domain name rvijay.me
> >
> > When ever a bounce gets generated, this is the mail it generates.
> >
> > <snip>
> > host
> > vrajah5.localdomain[/apps/
> > mail/var/postfix/dovecot-lmtp] said: 552
> > 5.2.2 <[email protected]> Quota exceeded (mailbox for user is full) (in
> > reply
> > to end of DATA command)
> > </snip>
> >
> > I was wondering if i could change this without changing the servers'
> > hostname and also change the sender from
> [email protected]
> > [email protected] ( I tried using generic maps, it did not work)
>
> "did not work" is useless without the details that show your mistake.
>
> generic-maps will change addresses in the NDR message header and
> envelope. That address translation is necessary when you send NDR
> messages to the Internet, so that the addresses are valid.
>
> Translating the addresses in the NDR message body may not be
> important. No-one looks at that.
>
> Wietse
>
> Wietse
>