# Which MTA logfile ?

**URL:** <https://community.ciphermail.com/t/which-mta-logfile/235>\
**Category:** Gateway\
**Created:** [August 23, 2011, 1:43pm UTC](https://community.ciphermail.com/t/which-mta-logfile/235 "2011-08-23T13:43:33Z")\
**Posts on this page:** 3\
**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:** [August 23, 2011, 1:43pm UTC](https://community.ciphermail.com/t/which-mta-logfile/235/1 "2011-08-23T13:43:33Z")

</div>

Hi,

I have installed djigzo on a OpenSuSE 11.1 system.  
Encryption and signing seems to work without a problem, but there's one nasty detail, which I cannot solve.

In the "Logs" section the webinterface shows the entries of /var/log/djigzo.log which is of course a symbolic link.

But Djigzo doesn't display any entries for the MTA log. The file /var/log/mail exists and I have created a symbolic link called mail.log that points to /var/log/mail.  
Just to make sure, that it isn't a permission problem, I did a "chmod o+r /var/log/mail" but there are still no entries in the webinterface.

Does anyone have an idea what logfile Djigzo is looking for or why it cannot read /var/log/mail?

Thanks for any hints/suggestions,

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:** [August 23, 2011, 1:50pm UTC](https://community.ciphermail.com/t/which-mta-logfile/235/2 "2011-08-23T13:50:52Z")

</div>

By default Djigzo looks for /var/log/mail.info.0 and /var/log/mail.info

This is specified in postfixLogManagerWSBean in conf/spring/soap.xml

&nbsp;&nbsp;&nbsp;&nbsp;\<bean id="postfixLogManagerWSBean"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class="mitm.application.djigzo.ws.impl.PostfixLogManagerWSImpl"\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<constructor-arg\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<list\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<value\>/var/log/mail.info.0\</value\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<value\>/var/log/mail.info\</value\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</list\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</constructor-arg\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</bean\>

You can either change the values of the postfixLogManagerWSBean (you can  
add more entries if you wish) or perhaps easier add a soft link from  
/var/log/mail to /var/log/mail.info etc.

Kind regards,

Martijn Brinkers

> **···**
>
> On 08/23/2011 03:43 PM, Stefan Michael Guenther wrote:
> 
> > Hi,
> > 
> > I have installed djigzo on a OpenSuSE 11.1 system.  
> > Encryption and signing seems to work without a problem, but there's one nasty detail, which I cannot solve.
> > 
> > In the "Logs" section the webinterface shows the entries of /var/log/djigzo.log which is of course a symbolic link.
> > 
> > But Djigzo doesn't display any entries for the MTA log. The file /var/log/mail exists and I have created a symbolic link called mail.log that points to /var/log/mail.  
> > Just to make sure, that it isn't a permission problem, I did a "chmod o+r /var/log/mail" but there are still no entries in the webinterface.
> > 
> > Does anyone have an idea what logfile Djigzo is looking for or why it cannot read /var/log/mail?
> 
> --  
> Djigzo open source email encryption

---

<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:** [August 23, 2011, 4:15pm UTC](https://community.ciphermail.com/t/which-mta-logfile/235/3 "2011-08-23T16:15:44Z")

</div>

> By default Djigzo looks for /var/log/mail.info.0 and /var/log/mail.info
> 
> This is specified in postfixLogManagerWSBean in conf/spring/soap.xml
> 
> &nbsp;&nbsp;&nbsp;&nbsp;\<bean id="postfixLogManagerWSBean"  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class="mitm.application.djigzo.ws.impl.PostfixLogManagerWSImpl"\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<constructor-arg\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<list\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<value\>/var/log/mail.info.0\</value\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<value\>/var/log/mail.info\</value\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</list\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</constructor-arg\>  
> &nbsp;&nbsp;&nbsp;&nbsp;\</bean\>
> 
> You can either change the values of the postfixLogManagerWSBean (you can  
> add more entries if you wish) or perhaps easier add a soft link from  
> /var/log/mail to /var/log/mail.info etc.

I have changed it in the config file, but that's not enough.  
The problem on an OpenSuSE system is, that /var/log/mail belongs to root:root (rw-r-----).  
Therefore djigzo will still not be able to read the file.  
I did a "chgrp djigzo /var/log/mail" and added this command to /etc/logrotate.d/syslog. because otherwise the problem will occur again after the rotation of the logfile.

Bye,

Stefan
