[pfx] Re: 25 years today

2023-12-14 Thread testeur via Postfix-users
Thx Wietse for this part of history and for this best MTA software known 
as postfix.


On 14/12/2023 14:20, Wietse Venema via Postfix-users wrote:

As a few on this list may recall, it is 25 years ago today that the
"IBM secure mailer" had its public beta release. This was accompanied
by a nice article in the New York Times business section.

There is some literature at https://www.postfix.org/press.html that
attests how this project accelerated open-source adoption by a very
large company.

At the time there were several efforts by people inside IBM to do
open-source projects, but it was the NY Times article that brought
open source on the radar of the CEO. He then tasked people to come
up with an open-source strategy for IBM.

As for the name Postfix, my colleagues and I had come up with
multiple names that were rejected each time (I still have some
Internet domains names from that time). We decided that this was
not going to work, released it as "IBM secure mailer", and then,
after IBM was no longer in control, changed the name to Postfix.

That was a long time ago. Postfix has evolved as the Internet has
changed. I am continuing the overhaul of this software, motivated
by people like you on this mailing list.

Wietse
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

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


[pfx] configuration to send to recipients in a spread out manner to avoid being considered spam

2023-11-19 Thread testeur via Postfix-users

Hi,

I did a request to mailman3 ML about this question, but it seems that 
postfix can respond to my request.
I use mailman3. But AOL, YAHOO seems to consider emails sent to 
recipients as spam or an "Excessively high volume of emails". There's 
just 40 (aol, yahoo) emails suscribed to the list. i tested the list on 
www.mail-tester.com, but 10/10.


Is there a mean to configure postfix for that emails be sent to 
recipients in a spread out manner to avoid being considered spam ? Maybe 
taking 10 emails from the same domain, to send it all 3 minutes until 
that all email form the same domain be passed.


thx.

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


[pfx] Re: Return-path: == From:

2023-11-19 Thread testeur via Postfix-users

Ok. Good, i ve to test it by PHP codes.
i ll try it...

Very thanks.

On 17/11/2023 10:50, postfix--- via Postfix-users wrote:
I ve a webserver allowed to send mails message (with PHP) to a 
postfix relay, which send it to recipients.


I'd want that the return-path be the same that the From sender.



You do this in PHP, PHP creates the email that postfix relays. Its 
done with the -f command line arg.


$to = "u...@example.com";
$from = "f...@example.com";
$subject = "Email Subject";
$headers = ['From' => $from];
$cmdLineParams = "-f $from";
$body  = "Body text line one.\nAnd line two.\n";
mail($to, $subject, $body, $headers, $cmdLineParams);
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

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


[pfx] Return-path: == From:

2023-11-17 Thread Testeur via Postfix-users
Hi.

I ve a webserver allowed to send mails message (with PHP) to a postfix relay, 
which send it to recipients.

But, the sender can change depending of the aim of the message.

On the postfix conf of the web server, i wrote a specific authenticated sender 
to send message (by the relay), and i wrote the same email on the end of the 
apache2/php sendmail_path line.

I'd want that the return-path be the same that the From sender.

Is there a mean to do that with a postfix mean (eg. with rewriting headers) ?

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


[pfx] Re: forward IP source from a postfix relay to a postfix server

2023-11-01 Thread testeur via Postfix-users

Hi,

very thanks.
it is functionnal.

Regards,

On 01/11/2023 01:21, Wietse Venema via Postfix-users wrote:

testeur via Postfix-users:

Hi,

Thx wietse for your help.

I can understand now more precisely where to act.

In the External_Postfix_relay, i use too amavis, spamassassin,
policy-spf. Then i ve to indicate the "smtp_send_xforward_command=yes"
option in the master.cf . But i don't know in which command precisely do
i have to write in ?

In the External_Postfix_relay SMTP client definition in master.cf,
add smtp_send_xforward_command=yes for example

/etc/postfix/master.cf:
 relay  unix  -   -   -   -   -   smtp
 -o { smtp_send_xforward_command=yes }

This assumes that you are using the "relay" transport to forward
mail to the internal Postfix server. This SMTP client should be
different from the 'default' SMTP client for outbound mail to the
Internet.

In the main.cf file of the internal Postfix server:

/etc/postfix/main.cf:
 smtpd_authorized_xforward_hosts = 192.168.1.2

with the IP address of the External_Postfix_relay SMTP client.

Wietse
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

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


[pfx] Re: forward IP source from a postfix relay to a postfix server

2023-10-31 Thread testeur via Postfix-users

Hi,

Thx wietse for your help.

I can understand now more precisely where to act.

In the External_Postfix_relay, i use too amavis, spamassassin, 
policy-spf. Then i ve to indicate the "smtp_send_xforward_command=yes" 
option in the master.cf . But i don't know in which command precisely do 
i have to write in ?


I ve these commands (beetween others) available :

* smtp/inet/command = smtpd -o smtpd_tls_security_level=none -o 
content_filter=spamassassin
* spamassassin/unix/command = pipe user=spamd argv=/usr/bin/spamc -f -e 
/usr/sbin/sendmail -oi -f ${sender} ${recipient}

* relay/unix/command = smtp -o smtp_fallback_relay=
* smtp-amavis/unix/command = smtp -o syslog_name=postfix/amavis -o 
smtp_data_done_timeout=1200 -o disable_dns_lookups=yes -o max_use=20 -o 
smtp_tls_security_level=none
* 127.0.0.1:10025/inet/command = smtpd -o syslog_name=postfix/10025 -o 
content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o 
smtpd_restriction_classes= -o smtpd_delay_reject=no -o 
smtpd_client_restrictions=permit_mynetworks,reject -o 
smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o 
smtpd_recipient_restrictions=permit_mynetworks,reject -o 
smtpd_data_restrictions=reject_unauth_pipelining -o 
smtpd_end_of_data_restrictions= -o mynetworks=127.0.0.0/8,0.0.0.0/0 -o 
smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o 
smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o 
smtpd_client_connection_rate_limit=0 -o 
receive_override_options=no_header_body_checks,no_unknown_recipient_checks

* policy-spf/unix/command = spawn user=nobody argv=/usr/bin/policyd-spf


I ve the same question about the "smtpd_authorized_xforward_hosts" 
option in the Internal_Postfix_server. Maybe the smtp would be the good 
option !?


Regards,

PG

On 11/10/2023 23:16, Wietse Venema via Postfix-users wrote:

testeur via Postfix-users:

Hi,

Well.
i read it :
https://postfix.traduc.org/index.php/XFORWARD_README.html
But i don't know how to implement that in postfix (master.cf ?) ?! the
link explain the "protocol"...
there's no howto to do it...

if someone know an howto somewhere ?

You could try;

 postconf | grep xforward

And then look at the parameters:

 To send XFORWARD:

 https://www.postfix.org/postconf.5.html#smtp_send_xforward_command

 To receive XFORWARD:

 https://www.postfix.org/postconf.5.html#smtpd_authorized_xforward_hosts

Wietse


Regards,

PG

On 11/10/2023 00:20, Wietse Venema via Postfix-users wrote:

testeur via Postfix-users:

Hi,

I don't understand how the External_Postfix_relay server could send
XCLIENT commands to the final postfix server ?
is there some modifications to do in the master.cf file ?

You asked how to impersonate a client or server TCP endpoint. Postfix
supports receiving TCP endpoint impersonation commands using two
protocols: XCLIENT (used by nginx) and the HaProxy protocol.  The
primary use cases are load balancers and policy testing.

There is no code in Postfix to send XCLIENT or HaProxy commands
for the simple reason that no-one has needed it.

Postfix does support sending XFORWARD commands with remote SMTP
client information for the purpose of logging, not impersonantion.
It is typically used with SMTP-based content filters.

Wietse


Regards,

On 08/10/2023 22:19, Wietse Venema via Postfix-users wrote:

testeur via Postfix-users:

Hi,

I try to find a solution to forward the IP source from the postfix relay
to the final postfix server (internal).

Mail_Message sent to -> External_Postfix_relay (ip source from client
ok) -> Internal_Postfix_server (ip source from external postfix relay,
not the one from client's mail_message)

How can i do that ?

If you want to propagate the remote SMTP client IP address or the
External_Postfix_relay server IP address, the External_Postfix_relay
server could send XCLIENT commands to the final postfix server
(internal). See https://www.postfix.org/XCLIENT_README.html

Or you could use Postfix's HaProxy protocol support in the final
postfix server (internal) to get a similar result.

Wietse
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

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


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

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


___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an emai

[pfx] Re: forward IP source from a postfix relay to a postfix server

2023-10-11 Thread testeur via Postfix-users

Hi,

Well.
i read it :
https://postfix.traduc.org/index.php/XFORWARD_README.html
But i don't know how to implement that in postfix (master.cf ?) ?! the 
link explain the "protocol"...

there's no howto to do it...

if someone know an howto somewhere ?

Regards,

PG

On 11/10/2023 00:20, Wietse Venema via Postfix-users wrote:

testeur via Postfix-users:

Hi,

I don't understand how the External_Postfix_relay server could send
XCLIENT commands to the final postfix server ?
is there some modifications to do in the master.cf file ?

You asked how to impersonate a client or server TCP endpoint. Postfix
supports receiving TCP endpoint impersonation commands using two
protocols: XCLIENT (used by nginx) and the HaProxy protocol.  The
primary use cases are load balancers and policy testing.

There is no code in Postfix to send XCLIENT or HaProxy commands
for the simple reason that no-one has needed it.

Postfix does support sending XFORWARD commands with remote SMTP
client information for the purpose of logging, not impersonantion.
It is typically used with SMTP-based content filters.

Wietse


Regards,

On 08/10/2023 22:19, Wietse Venema via Postfix-users wrote:

testeur via Postfix-users:

Hi,

I try to find a solution to forward the IP source from the postfix relay
to the final postfix server (internal).

Mail_Message sent to -> External_Postfix_relay (ip source from client
ok) -> Internal_Postfix_server (ip source from external postfix relay,
not the one from client's mail_message)

How can i do that ?

If you want to propagate the remote SMTP client IP address or the
External_Postfix_relay server IP address, the External_Postfix_relay
server could send XCLIENT commands to the final postfix server
(internal). See https://www.postfix.org/XCLIENT_README.html

Or you could use Postfix's HaProxy protocol support in the final
postfix server (internal) to get a similar result.

Wietse
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

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


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

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


[pfx] Re: forward IP source from a postfix relay to a postfix server

2023-10-10 Thread testeur via Postfix-users

Hi,

I don't understand how the External_Postfix_relay server could send 
XCLIENT commands to the final postfix server ?

is there some modifications to do in the master.cf file ?

Regards,

On 08/10/2023 22:19, Wietse Venema via Postfix-users wrote:

testeur via Postfix-users:

Hi,

I try to find a solution to forward the IP source from the postfix relay
to the final postfix server (internal).

Mail_Message sent to -> External_Postfix_relay (ip source from client
ok) -> Internal_Postfix_server (ip source from external postfix relay,
not the one from client's mail_message)

How can i do that ?

If you want to propagate the remote SMTP client IP address or the
External_Postfix_relay server IP address, the External_Postfix_relay
server could send XCLIENT commands to the final postfix server
(internal). See https://www.postfix.org/XCLIENT_README.html

Or you could use Postfix's HaProxy protocol support in the final
postfix server (internal) to get a similar result.

Wietse
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

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


[pfx] forward IP source from a postfix relay to a postfix server

2023-10-08 Thread testeur via Postfix-users

Hi,

I try to find a solution to forward the IP source from the postfix relay 
to the final postfix server (internal).


Mail_Message sent to -> External_Postfix_relay (ip source from client 
ok) -> Internal_Postfix_server (ip source from external postfix relay, 
not the one from client's mail_message)


How can i do that ?

Regards,

PG Testeur

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