Re: check_sender_access not working on local senders
Yep, working perfectly, thanks! From: Bill Cole To: Postfix users Sent: 09.02.2020 2:12 AM Subject: Re: check_sender_access not working on local senders On 8 Feb 2020, at 17:25, simonh wrote: > Hello, > > I am trying to automate anti-spam flood on our Plesk servers, and my > goal is > to be able to REJECT mails from abused mailboxes or from non-captcha'd > web > forms. > > On the mailboxes, the directive check_sender_access works as expected, > no > problem here. > > Whenever I try to REJECT mails from root@localhost (sendmail -t > , > for example), or from a web form that uses a local UNIX account, it > does not > work. Just goes straight out. > > Anybody knows how to do the trick? Run 'man 5 postconf' and look for the section on the 'authorized_submit_users' directive. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not Currently Available For Hire
Message encoding by guessing
Hi How to guess the message body’s language encoding if message didn’t have MIME charset set? The message may be encoded with utf8, gb2312, gbk or something others, but it didn’t have an charset header. Thanks
Re: Message encoding by guessing
On Sun, Feb 09, 2020 at 01:45:21PM +0300, wes...@199903.xyz wrote: > How to guess the message body’s language encoding if message didn’t have MIME > charset set? The message may be encoded with utf8, gb2312, gbk or something > others, but it didn’t have an charset header. Well, text/*, with the historic exception of text/html, default to ASCII, if nothing else is defined, so no 8-bit characters are allowed. Bastian -- The heart is not a logical organ. -- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4
Re: Message encoding by guessing
On Sun, Feb 09, 2020 at 01:45:21PM +0300, wes...@199903.xyz wrote: > How to guess the message body’s language encoding if message didn’t > have MIME charset set? The message may be encoded with utf8, gb2312, > gbk or something others, but it didn’t have an charset header. You could run the text through "iconv -f ", and see what comes out. For valid (correctly minimally encoded) utf-8: https://en.wikipedia.org/wiki/UTF-8#Description every non-ascii character sequence starts with an initial byte that is in the range: 0b1110 - 0xc2 hex or 194 decimal, through: 0b0100 -- 0xf4 hex or 244 decimal and continues with more bytes that are all in the range 0x10xx - 0x80--0xbf hex or 128--191 decimal the number of such bytes in each group (including the initial byte) is equal to the number of consecutive non-zero bits starting with the MSB in the first byte. For some random other code point, good luck! But Windows-1232 is pretty common for things mostly in the Latin alphabet. -- Viktor.
Building recipient maps from Exchange/O365
Hi, Is it possible for postfix to directly access the email addresses or userlist from an Exchange server using either LDAP or AD? Perhaps someone has an external script that can be used to build the recipient maps? The results from my search have produced only other people looking unsuccessfully and posts that pre-date O365. Thanks, John
Re: Building recipient maps from Exchange/O365
On Sun, Feb 09, 2020 at 07:03:12AM -0500, John Regan wrote: > Is it possible for postfix to directly access the email addresses or > userlist from an Exchange server using either LDAP or AD? Perhaps someone > has an external script that can be used to build the recipient maps? Postfix has LDAP table support, documented at: http://www.postfix.org/LDAP_README.html http://www.postfix.org/ldap_table.5.html In Exchange, the core of the lookup table is typically: domain = example.com query_filter = proxyAddresses=smtp:%s result_attribute = mail but some other lookup key or result may be more appropriate. I have nothing informative to say about Office365. -- Viktor.
Re: Building recipient maps from Exchange/O365
it should be. use ldap. active directory is nothing but a glorified ldap server and listens on port 389. Sent from my iPhone > On Feb 9, 2020, at 7:04 AM, John Regan wrote: > > > Hi, > > Is it possible for postfix to directly access the email addresses or userlist > from an Exchange server using either LDAP or AD? Perhaps someone has an > external script that can be used to build the recipient maps? > > The results from my search have produced only other people looking > unsuccessfully and posts that pre-date O365. > > Thanks, > John >
Re: Building recipient maps from Exchange/O365
On Sun, 9 Feb 2020 07:56:53 -0500, Curtis Maurand stated: >it should be. use ldap. active directory is nothing but a glorified >ldap server and listens on port 389. If it were ldap over ssl the port is 636 I believe. -- Gerard
Re: Building recipient maps from Exchange/O365
On 2/9/20 12:39 PM, Gerard E. Seibert wrote: On Sun, 9 Feb 2020 07:56:53 -0500, Curtis Maurand stated: it should be. use ldap. active directory is nothing but a glorified ldap server and listens on port 389. If it were ldap over ssl the port is 636 I believe. I stand corrected.
Re: Building recipient maps from Exchange/O365
Hi, I'm using an hourly shell script to retrieve from our AD the proper LDAP records, and an AWK script to transform this output into an alias map (our Exchange setup uses a different internal address from the public external address). This alias map is later used to create a list of allowed recipient addresses. We use on premise AD and Exchange, nothing in the cloud. pat > On 09 févr. 2020, at 13:03, John Regan wrote: > > Hi, > > Is it possible for postfix to directly access the email addresses or userlist > from an Exchange server using either LDAP or AD? Perhaps someone has an > external script that can be used to build the recipient maps? > > The results from my search have produced only other people looking > unsuccessfully and posts that pre-date O365. > > Thanks, > John >