cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

How to remove postfix warning?

We had to change our hostname in SMPT header, so we used sk101870. After installing policy when we are looking at postfix queue with command "[Expert@HostName:0]# /opt/postfix/usr/sbin/postqueue -c /opt/postfix/etc/postfix/ -p", we have a warning: "Jul  3 17:59:53 2018 TEST-HOST postfix/smtpd[6608]: warning: /opt/postfix/CTX/CTX00003/etc/postfix/main.cf, line 55: overriding earlier entry: myhostname=TEST-HOST". We can see multiple records "myhostname=..." in file /opt/postfix/CTX/CTX00003/etc/postfix/main.cf. If we would remove and leave only one, the problem is gone. But these records are recreated every time we install policy. Is there any way to remove them permanently or make that warning not appear?

0 Kudos
3 Replies

Re: How to remove postfix warning?

I know that we can redirect STDERR to /dev/null but I am looking for possibility to remove it permanently.

0 Kudos
Admin
Admin

Re: How to remove postfix warning?

Is it the same entry multiple times in the file?

That sounds like a bug and I would recommend consulting with the TAC: Contact Support | Check Point Software 

0 Kudos
Danny
Pearl

Re: How to remove postfix warning?

/opt/postfix/usr/sbin/postqueue -c /opt/postfix/etc/postfix/ -p 2>/dev/null‍
0 Kudos