I'm sure I've seen this issue before here on postfix-users.
But can't find it.

When main.cf does not have a trailing newline, using `postconf -e foo=bar'
to add new parameter makes bad main.cf.  For example:

$ head -c-1 /etc/postfix/main.cf > main.cf
$ tail -n1 main.cf
default_destination_concurrency_limit = 1$ MAIL_CONFIG=$(pwd) 
/usr/sbin/postconf -e foo=bar
$ tail -n1 main.cf
default_destination_concurrency_limit = 1foo=bar
$ _

(note the command in 3rd line is in the same line as `tail` output)

I wonder if I should add a wrapper around postconf to check for the
missing trailing newline.  This is kinda strange provided all other
parts of postfix cope with this situation just fine.

(postfix version is 3.10).

Thanks,

/mjt
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to