[pfx] Re: Postfix SMTP with multiple MX and multiple servers each

2024-09-02 Thread Viktor Dukhovni via Postfix-users
On Tue, Sep 03, 2024 at 02:01:20PM +1000, Viktor Dukhovni via Postfix-users wrote: > So in terms of connection policy, these behave the same: > >1. some.example. IN MX 0 mx.some.example. > mx.some.example. IN 192.0.2.1 > mx.some.example. IN 192.0.2.2 > mx.some.examp

[pfx] Re: Postfix Startup issues

2024-09-02 Thread Viktor Dukhovni via Postfix-users
On Mon, Sep 02, 2024 at 01:14:47PM -0600, Glen via Postfix-users wrote: > Problem: > > *  Postfix does not start after a reboot. > * systemctl start postfix ...Job for postfix.service failed because >the control process exited with error code. > * systemctl status -l  postfix ...  Failed

[pfx] Re: Postfix SMTP with multiple MX and multiple servers each

2024-09-02 Thread Viktor Dukhovni via Postfix-users
On Tue, Sep 03, 2024 at 10:12:57AM +0800, LinuxMail.cc via Postfix-users wrote: > IIRC for the group of IPs with the same weight, > Postfix put them into a array with max size 8, and pick up one from the > array by round robin. Why guess? https://www.postfix.org/postconf.5.html#smtp_mx_s

[pfx] Re: Postfix SMTP with multiple MX and multiple servers each

2024-09-02 Thread LinuxMail.cc via Postfix-users
IIRC for the group of IPs with the same weight, Postfix put them into a array with max size 8, and pick up one from the array by round robin. On 2024-09-03 05:35, Pedro David Marco via Postfix-users wrote: Hi everybody... i think Wietse has explaned this before, but i cannot find the posts

[pfx] Postfix SMTP with multiple MX and multiple servers each

2024-09-02 Thread Pedro David Marco via Postfix-users
Hi everybody... i think Wietse has explaned this before, but i cannot find the posts, so please excuse with me if i ask this again. I would like to clearify with myslef how Postfix smtp daemon deals with remote MXs of a destination. 1.- When there are different MX with different weight but the DN

[pfx] Re: Postfix Startup issues

2024-09-02 Thread Wietse Venema via Postfix-users
Glen via Postfix-users: > Just joined and don't know if anyone can help. Hopefully someone can. > Recently, my mail server appears to have been attached. > I have blocked the subnet of the offender at my Firewall. > Server Centos 7, running postfix for many years > > Problem: > > * ?Postfix do

[pfx] Postfix Startup issues

2024-09-02 Thread Glen via Postfix-users
Just joined and don't know if anyone can help. Hopefully someone can. Recently, my mail server appears to have been attached. I have blocked the subnet of the offender at my Firewall. Server Centos 7, running postfix for many years Problem: *  Postfix does not start after a reboot. * systemct

[pfx] Re: Correct (least-privilege) way to access /var/spool/postfix/public/qmgr

2024-09-02 Thread Viktor Dukhovni via Postfix-users
On Tue, Sep 03, 2024 at 02:55:11AM +1000, Viktor Dukhovni via Postfix-users wrote: > A "censored" example: > > $ postqueue -j | tail -n1 | jq -n 'fromstream(inputs|tostream|[.[0], > (.[1:][]|"foo")])' > { > "queue_name": "foo", > "queue_id": "foo", > "arrival_time": "f

[pfx] Re: Correct (least-privilege) way to access /var/spool/postfix/public/qmgr

2024-09-02 Thread Viktor Dukhovni via Postfix-users
On Mon, Sep 02, 2024 at 04:08:35PM +, Laura Smith via Postfix-users wrote: > Fair enough. Although the problem with no output is I've not no > "schema" to go by when coding the JSON parser ? A "censored" example: $ postqueue -j | tail -n1 | jq -n 'fromstream(inputs|tostream|[.[0], (.[1:

[pfx] Re: Correct (least-privilege) way to access /var/spool/postfix/public/qmgr

2024-09-02 Thread Laura Smith via Postfix-users
> $ postqueue; echo $? > postqueue: fatal: usage: postqueue -f | postqueue -i queueid | postqueue -j | > postqueue -p | postqueue -s site > 69 > > With an empty mail queue: > > $ postqueue -p; echo $? > Mail queue is empty > 0 > > $ postqueue -j; echo $? > 0 > > $ postqueue -f; echo $? > 0

[pfx] Re: Correct (least-privilege) way to access /var/spool/postfix/public/qmgr

2024-09-02 Thread Wietse Venema via Postfix-users
Laura Smith via Postfix-users: > > > > > $ postqueue; echo $? > > postqueue: fatal: usage: postqueue -f | postqueue -i queueid | postqueue -j > > | postqueue -p | postqueue -s site > > 69 > > > > With an empty mail queue: > > > > $ postqueue -p; echo $? > > Mail queue is empty > > 0 > > > >