[pfx] Re: Send every mail to external antispam gateway

2023-07-10 Thread Wietse Venema via Postfix-users
Alexander Rehbein via Postfix-users: > Hello, > > I'm looking for a solution to send every mail, also from one internal > mailbox to another internal mailbox, to an external server which check > the mails. The external server will send every mail back to postfix. > Also every external mail will on

[pfx] Re: Postfix "sendmail -bv" command: Trouble with spamassassin and virtual_aliases

2023-07-10 Thread Robert Senger via Postfix-users
Am Montag, dem 10.07.2023 um 09:39 -0400 schrieb Viktor Dukhovni via Postfix-users: > On Mon, Jul 10, 2023 at 03:24:54PM +0200, Robert Senger wrote: > > > Hey, that was me! My full given name *is* Robert'); DROP ... > > > > CONFDIR=/etc/postfix > > POSTMAP=/usr/sbin/postmap > > LOCAL_VIRTUAL_USER

[pfx] Send every mail to external antispam gateway

2023-07-10 Thread Alexander Rehbein via Postfix-users
Hello, I'm looking for a solution to send every mail, also from one internal mailbox to another internal mailbox, to an external server which check the mails. The external server will send every mail back to postfix. Also every external mail will only come from this external server. Mails from the

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Bill Cole via Postfix-users
On 2023-07-10 at 12:42:24 UTC-0400 (Mon, 10 Jul 2023 17:42:24 +0100) Ken Gillett via Postfix-users is rumored to have said: From where is postconf getting its information? Does it have a config directory hard coded? Yes. Note: # strings /Applications/Server.app/Contents/ServerRoot/usr/sbin

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
Apart from /usr/sbin/postconf, I also found:- /Applications/Server.app/Contents/ServerRoot/usr/sbin/postconf Running the latter gives entirely different output from the former and according to that, the changes to the main.cf I've made have been incorporated. So I need to check the resu

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Viktor Dukhovni via Postfix-users
On Mon, Jul 10, 2023 at 04:56:31PM +0100, Ken Gillett via Postfix-users wrote: > Ok, so logged in on Mac and used the Server admin tool to change a > setting (added a relay host). The main.cf in > /Library/Server/Mail/Config/postfix was updated. So that's what MacOS > thinks is the config dir as w

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
Ok, so logged in on Mac and used the Server admin tool to change a setting (added a relay host). The main.cf in /Library/Server/Mail/Config/postfix was updated. So that's what MacOS thinks is the config dir as well as the actual running 'master' process. However, postconf -n does not list the

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
Aha. Had not tried that (hadn't seen that as a config. parameter). postconf -d config_directory => config_directory = /etc/postfix So, despite the process itself saying it's using one directory, postconf reports a different one, the default. How would different postconf files account f

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
Thanks for all that and from Viktor. It was occurring to me that the hard coded parameters in question (as Viktor mentioned) get their info from the hardware at runtime. So that explains my question regarding that. I have been looking at postconf -d, -p and -n as I understand what they purport

[pfx] Re: Postfix "sendmail -bv" command: Trouble with spamassassin and virtual_aliases

2023-07-10 Thread Viktor Dukhovni via Postfix-users
On Mon, Jul 10, 2023 at 03:24:54PM +0200, Robert Senger wrote: > Hey, that was me! My full given name *is* Robert'); DROP ... > > CONFDIR=/etc/postfix > POSTMAP=/usr/sbin/postmap > LOCAL_VIRTUAL_USERS=mysql:${CONFDIR}/virtual_mailboxes.mysql.cf > > recipient=$(printf '%s' "$2" | sed 's/[<>]//g')

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Bill Cole via Postfix-users
On 2023-07-10 at 05:34:44 UTC-0400 (Mon, 10 Jul 2023 10:34:44 +0100) Ken Gillett via Postfix-users is rumored to have said: It is many years since I set up postfix on my Mac server and it's use is now purely for local email, i.e. users on home network. However I have some issues with this and

[pfx] Re: Postfix "sendmail -bv" command: Trouble with spamassassin and virtual_aliases

2023-07-10 Thread Robert Senger via Postfix-users
Am Montag, dem 10.07.2023 um 08:52 -0400 schrieb Viktor Dukhovni via Postfix-users: > > On 10 Jul 2023, at 5:50 am, Matus UHLAR - fantomas via Postfix- > > users wrote: > > > > > > #!/bin/bash > > > > user=`echo "$2" | sed 's/[<>]//g'` > > > > ret=`echo "select destination from virtual_aliases wh

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Viktor Dukhovni via Postfix-users
On Mon, Jul 10, 2023 at 09:17:52AM -0400, Viktor Dukhovni via Postfix-users wrote: > > First of all, changes I have made in main.cf are not being used. > > AFAICT I am editing the main.cf that is used:- > > > > ps ax | grep master => master -c /Library/Server/Mail/Config/postfix > > Yes, wi

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Viktor Dukhovni via Postfix-users
On Mon, Jul 10, 2023 at 10:34:44AM +0100, Ken Gillett via Postfix-users wrote: > First of all, changes I have made in main.cf are not being used. > AFAICT I am editing the main.cf that is used:- > > ps ax | grep master => master -c /Library/Server/Mail/Config/postfix Yes, with "-c" the pro

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Wietse Venema via Postfix-users
Ken Gillett via Postfix-users: > What does 'postconf -d' show? "postconf -d config_directory" shows where the postconf command looks for main.cf (and master.cf). The settings in mainl.cf then determine the location of other Postfix program and data files. It would be worthwhile to find out if t

[pfx] Re: Postfix "sendmail -bv" command: Trouble with spamassassin and virtual_aliases

2023-07-10 Thread Viktor Dukhovni via Postfix-users
> On 10 Jul 2023, at 5:50 am, Matus UHLAR - fantomas via Postfix-users > wrote: > >>> #!/bin/bash >>> user=`echo "$2" | sed 's/[<>]//g'` >>> ret=`echo "select destination from virtual_aliases where >>> source=\"$user\";" | /usr/bin/mysql -upostfix -psecretpassword >>> mailserver | tail -n 1` >>>

[pfx] Re: How to configure minimal POP3/IMAP server with postfix?

2023-07-10 Thread Bill Cole via Postfix-users
On 2023-07-10 at 04:10:32 UTC-0400 (Mon, 10 Jul 2023 09:10:32 +0100) Chris Green via Postfix-users is rumored to have said: I run simple Postfix setups on a number of systems, these are all systems which only have a very few users, two or three at the most. I want to add IMAP/POP3 access to on

[pfx] Re: Postfix "sendmail -bv" command: Trouble with spamassassin and virtual_aliases

2023-07-10 Thread Matus UHLAR - fantomas via Postfix-users
On 10.07.23 01:17, Robert Senger via Postfix-users wrote: Thanks to all of you for your tips and advices! This turned out to be far more complicated than I thought... I am staying with spamass-milter and bash scripting for the moment (but implemented all of your programming advices), it's a tes

[pfx] which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
It is many years since I set up postfix on my Mac server and it's use is now purely for local email, i.e. users on home network. However I have some issues with this and could really do with some help. First of all, changes I have made in main.cf are not being used. AFAICT I am editing the main

[pfx] Re: How to configure minimal POP3/IMAP server with postfix?

2023-07-10 Thread Chris Green via Postfix-users
On Mon, Jul 10, 2023 at 10:54:19AM +0200, Jaroslaw Rafa via Postfix-users wrote: > Dnia 10.07.2023 o godz. 09:10:32 Chris Green via Postfix-users pisze: > > > > What's the simplest way to do this? I looked in the "Postfix Howtos > > and FAQs" page but there didn't seem to be any 'minimal' sort of

[pfx] Re: How to configure minimal POP3/IMAP server with postfix?

2023-07-10 Thread Jaroslaw Rafa via Postfix-users
Dnia 10.07.2023 o godz. 09:10:32 Chris Green via Postfix-users pisze: > > What's the simplest way to do this? I looked in the "Postfix Howtos > and FAQs" page but there didn't seem to be any 'minimal' sort of > setups there. They also seemed rather old. > > So, can I just install and configure

[pfx] Re: How to configure minimal POP3/IMAP server with postfix?

2023-07-10 Thread Michel Verdier via Postfix-users
On 2023-07-10, Chris Green via Postfix-users wrote: > So, can I just install and configure Dovecot with Postifx delivering > mail to /var/mail? > > ... and is Dovecot the way to go? You need to install a pop/imap server to store and deliver mails. Dovecot is one of them. And it is somewhat easy t

[pfx] How to configure minimal POP3/IMAP server with postfix?

2023-07-10 Thread Chris Green via Postfix-users
I run simple Postfix setups on a number of systems, these are all systems which only have a very few users, two or three at the most. I want to add IMAP/POP3 access to one of the systems (it's a VPS but that's probably irrelevant). This will again be for only two or three users. What's the simpl