# modifying "from=\<\>"

**URL:** <https://community.ciphermail.com/t/modifying-from/510>\
**Category:** Gateway\
**Created:** [July 18, 2016, 6:02am UTC](https://community.ciphermail.com/t/modifying-from/510 "2016-07-18T06:02:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Gunther](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stefan\_Gunther](https://community.ciphermail.com/u/Stefan_Gunther)\
**Post date:** [July 18, 2016, 6:02am UTC](https://community.ciphermail.com/t/modifying-from/510/1 "2016-07-18T06:02:23Z")

</div>

Hi,

when Cipermail sends an encryption notification, the correspoding line in /var/log/mail.log is this:

Jul 17 15:22:15 ciphermail postfix/qmgr[1864]: 21B73206C5: from=\<\>, size=1460, nrcpt=1 (queue active)

How can I change "from=\<\>" to a valid sender address?

Rergards,

Stefan

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [July 18, 2016, 7:34am UTC](https://community.ciphermail.com/t/modifying-from/510/2 "2016-07-18T07:34:43Z")

</div>

Most automatically generated messages are sent using the null sender,  
i.e., the sender is empty. It is recommended to use the null sender for  
automatic notification messages, like the encryption notification, to  
prevent possible mail loops (a bounce message will never be generated to  
a null sender).

That said, you can change the sender address but it requires a change to  
the config.xml file. Look for the following matcher entry:

\<mailet match="All" class="Notify"\>  
&nbsp;&nbsp;\<log\> Sending encryption notification \</log\>  
&nbsp;&nbsp;\<template\> encryption-notification.ftl \</template\>  
&nbsp;&nbsp;\<templateProperty\> user.template.encryptionNotification  
\</templateProperty\>  
&nbsp;&nbsp;\<subject\> ${sameAsMessage} \</subject\>  
&nbsp;&nbsp;\<recipients\> ${runtime.originator} \</recipients\>  
&nbsp;&nbsp;\<sender\> ${null} \</sender\>  
&nbsp;&nbsp;\<to\> ${sameAsRecipients} \</to\>  
&nbsp;&nbsp;\<from\> postmaster \</from\>  
&nbsp;&nbsp;\<processor\> transport-auto-submitted \</processor\>  
&nbsp;&nbsp;\<passThrough\> true \</passThrough\>  
\</mailet\>

The sender is currently set to ${null}. You can change this to a valid  
email address (don't forget to restart the back-end after changing  
config.xml).

Kind regards,

Martijn Brinkers

> **···**
>
> On 07/18/2016 08:02 AM, Stefan Günther wrote:
> 
> > Hi,
> > 
> > when Cipermail sends an encryption notification, the correspoding line in /var/log/mail.log is this:
> > 
> > Jul 17 15:22:15 ciphermail postfix/qmgr[1864]: 21B73206C5: from=\<\>, size=1460, nrcpt=1 (queue active)
> > 
> > How can I change "from=\<\>" to a valid sender address?
> 
> --  
> CipherMail email encryption
> 
> Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> secure webmail pull.
> 
> > **[CipherMail email encryption and digital signatures](https://www.ciphermail.com)**
> >
> > Easy to use server-side email encryption for automatic encryption and digital signing of email.
> 
> Twitter: [http://twitter.com/CipherMail](http://twitter.com/CipherMail)
