Undefined Parameters

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Undefined Parameters

Geoff Jankowski
This is the first time I have used a mail list so if I make an error please bear with and guide me to correct it!

I am using postfix 3.4.8 on Debian 10 (hostname xerxes) and am trying to set up my IPv6 interface on eth0.  The last instruction in the guide is to run:

service networking restart

But it fails to bring up the interface (which is working on IPv4).  It tries to run:

ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)

And the critical errors given are:

May 17 23:15:45 xerxes ifup[5524]: ifup: failed to bring up eth0
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions

Reading /etc/network/Ifup it refers to using postconf which for Debian 10 is in /etc/sbin/ but it cannot be read as it appears to be a binary file(?).

When I investigate my master.cffile these three elements mua_sender_restrictionsmua_client_restrictions and mua_helo_restrictions
Are commented out so no definition is given and I assume that postconf is looking for them.  Reading the postfix.org site I chose recommended settings for each of these items, uncommented the lines and inserted them.  To be safe, I rebooted.

Immediately after reboot, I ran a status request and the output was as follows:

root@xerxes:/etc/postfix# systemctl status networking.service
‚óŹ networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-05-17 23:15:45 CEST; 11s ago
     Docs: man:interfaces(5)
  Process: 5524 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
 Main PID: 5524 (code=exited, status=1/FAILURE)

May 17 23:15:45 xerxes ifup[5524]: ifup: failed to bring up eth0
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
May 17 23:15:45 xerxes systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
May 17 23:15:45 xerxes systemd[1]: networking.service: Failed with result 'exit-code'.
 
So the server is issuing warnings even if I do not try to restart the network.

Postfix is running and working for my email but I cannot raise IPv6 on eth0 because of this issue (there may be others but this one is the current blockage).

Can anyone help?  Please direct me to the archive if necessary and a solution already exists.

Many thanks.



Geoff

Reply | Threaded
Open this post in threaded view
|

Re: Undefined Parameters

Wietse Venema
Geoff Jankowski:
> May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions

Something (Postfix master.cf or main.cf) is using $mua_sender_restrictions,
but that parameter is not defined in main.cf or master.cf.

In master.cf:
$ postconf -P | grep mua_sender_restrictions

In main.cf:
$ postconf -n | grep mua_sender_restrictions

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Undefined Parameters

Matus UHLAR - fantomas
In reply to this post by Geoff Jankowski
On 17.05.20 22:51, Geoff Jankowski wrote:

>I am using postfix 3.4.8 on Debian 10 (hostname xerxes) and am trying to
> set up my IPv6 interface on eth0.  The last instruction in the guide is to
> run:
>
>service networking restart
>
>But it fails to bring up the interface (which is working on IPv4).  It tries to run:
>
>ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
>
>And the critical errors given are:
>
>May 17 23:15:45 xerxes ifup[5524]: ifup: failed to bring up eth0
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
>
>Reading /etc/network/Ifup it refers to using postconf which for Debian 10 is in /etc/sbin/ but it cannot be read as it appears to be a binary file(?).

postconf is the program that complains, you don't have to see its content.
It's complaining about content of /etc/postfix/master.cf, not
/usr/sbin/postconf

>When I investigate my master.cf file these three elements
> mua_sender_restrictions, mua_client_restrictions and mua_helo_restrictions

>Are commented out so no definition is given and I assume that postconf is
> looking for them.  Reading the postfix.org site I chose recommended
> settings for each of these items, uncommented the lines and inserted them.
> To be safe, I rebooted.

They are default in master.cf but commented out for submission ans smtps
services:

#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions

I usually leave them commented out.
>Immediately after reboot, I ran a status request and the output was as follows:
>
>May 17 23:15:45 xerxes ifup[5524]: ifup: failed to bring up eth0
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
>May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions

How and where did you define them?


--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
10 GOTO 10 : REM (C) Bill Gates 1998, All Rights Reserved!
Reply | Threaded
Open this post in threaded view
|

Re: Undefined Parameters

Geoff Jankowski
In reply to this post by Wietse Venema
I solved it.  The white space in front of the arguments had been removed so it was reading them as an instruction that it could not understand.  Replacing the white space solved the issue thank you.


Geoff 
+44 20 7100 1092
+44 7770 58 48 38
+33 5 46 97 13 89
+33 6 22 93 00 53




On 17 May 2020, at 22:56, Wietse Venema <[hidden email]> wrote:

Geoff Jankowski:
May 17 23:15:45 xerxes ifup[5524]: postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions

Something (Postfix master.cf or main.cf) is using $mua_sender_restrictions,
but that parameter is not defined in main.cf or master.cf.

In master.cf:
$ postconf -P | grep mua_sender_restrictions

In main.cf:
$ postconf -n | grep mua_sender_restrictions

Wietse