[exim] Redirect with mysql
Hi, I'm doing an exim install to replace a legacy email system where all subscribers are doing an external redirectI used the following rule as conf.d/router/120_CPD_client_aliases client_aliases: debug_print = "R: client_aliases_XXX for $local_part@$domain" driver = redirect domains = +local_domains data = ${lookup mysql{SELECT real_address FROM client_aliases2 WHERE local_part='${sg{$local_part}{'}{''}}' AND local_domain='$domain'}} The rule is working but I would like the emails sent to addresses that do not exist in the table to be discarded. Does anyone have any ideas? really appreciate your help Luciano, -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
[exim] Exim + HAProxy
QUESTION Question about the use of haproxy with exim. In HOST HAProxy ..backup smtp_out balance roundrobin mode tcp timeout server 20s timeout connect 4s option smtpchk server smtp2 smtp2:25 send-proxy check server smtp3 smtp3:25 send-proxy check In HOST smtp2(3)$exim4 --versionExim version 4.92 #3 built 13-May-2020 16:01:31 /etc/exim4/conf.d/main/00_exim4-localhosts_proxy = 192.168.122.192 "(IP haproxy) /etc/exim4/update-exim4.conf.confdc_eximconfig_configtype='smarthost'dc_other_hostnames='smtp2'dc_local_interfaces='0.0.0.0 ; ::1'dc_readhost=''dc_relay_domains='*'dc_minimaldns='false'dc_relay_nets=''dc_smarthost='receptor'CFILEMODE='644'dc_use_split_config='true'dc_hide_mailname=''dc_mailname_in_oh='true'dc_localdelivery='mail_spool' /var/log/exim4/mainlog2020-11-05 11:35:54 SMTP protocol synchronization error (input sent without waiting for greeting): rejected connection from H=haproxy [192.168.122.192] input="HELO localhost\r\n" ThanksLuciano -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
[exim] Exim4 Spamassassin Timeout
Hi, I have an Exim facility with spamassassin enabled.The problem occurs when receiving e-mail from the server does not disconnect from the client at the appropriate time. Client log with swaks: swaks -t x --server xx:25 --from xx --h-Subject "SpamA ativo6-X1" === Trying ...=== Connected to .<- 220 ESMTP Exim 4.92 Tue, 18 Feb 2020 14:06:03 + -> EHLO XX<- 250- Hello XX [XXX]<- 250-SIZE 52428800<- 250-8BITMIME<- 250-PIPELINING<- 250-CHUNKING<- 250-STARTTLS<- 250 HELP -> MAIL FROM:<- 250 OK -> RCPT TO:<- 250 Accepted -> DATA<- 354 Enter message, ending with "." on a line by itself -> Date: Tue, 18 Feb 2020 11:06:03 -0300 -> To: x -> From: x -> Subject: SpamA ativo6-X1 -> Message-Id: <20200218110603.011543@xxx> -> X-Mailer: swaks v20170101.0 jetmore.org/john/code/swaks/ -> -> This is a test mailing -> -> .<** Timeout (30 secs) waiting for server response -> QUIT<** Timeout (30 secs) waiting for server response=== Connection closed with remote host. In the server: 2020-02-18 14:06:03.578 [2406] 1j43Vj-co-7j SA: Debug: SAEximRunCond expand returned: '1'2020-02-18 14:06:03.578 [2406] 1j43Vj-co-7j SA: Debug: check succeeded, running spamc After the timeout: 1j43Vj-co-7j SA: Action: scanned but message isn't spam: score=1.2 required=5.0 (scanned in 130/130 secs | Message-Id: 202002181106 exim4 --versionExim version 4.92 #3 built 27-Sep-2019 16:09:35 spamd --versionSpamAssassin Server version 3.4.2 running on Perl 5.28.1 with SSL support (IO::Socket::SSL 2.060) with zlib support (Compress::Zlib 2.074) Does anyone have any idea of the solution? -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
Re: [exim] Exim-users Digest, Vol 165, Issue 23
Hi, require message=starttls required encrypted=* in the smtp mail ACL "acl_check_mail" on debian systems. It's works.Thanks Em Domingo, 25 de Fevereiro de 2018 9:02, "exim-users-requ...@exim.org" <exim-users-requ...@exim.org> escreveu: Send Exim-users mailing list submissions to exim-users@exim.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.exim.org/mailman/listinfo/exim-users or, via email, send a message with subject or body 'help' to exim-users-requ...@exim.org You can reach the person managing the list at exim-users-ow...@exim.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Exim-users digest..." Today's Topics: 1. Question TLS (Luciano InfoCultura) 2. Re: Question TLS (Phil Pennock) 3. Re: Question TLS (Jasen Betts) How do I make connections initiated on ports 25 or 587 in plain text only allow the sending of messages after using STARTTLS. my brief configuration:The message exchange is between servers and do not use authentication. ..MAIN_TLS_ENABLE = truedaemon_smtp_ports = 25: 465: 587tls_on_connect_ports = 465.. Luciano da Silva On 2018-02-22 at 17:34 +, Luciano InfoCultura via Exim-users wrote: > How do I make connections initiated on ports 25 or 587 in plain text only > allow the sending of messages after using STARTTLS. > my brief configuration:The message exchange is between servers and do not use > authentication. > ..MAIN_TLS_ENABLE = truedaemon_smtp_ports = 25: 465: 587tls_on_connect_ports > = 465.. The MAIN_TLS_ENABLE setting is a sign of the Debianized configuration. All of the Exim settings you have listed above are for how Exim listens, not how it sends; sending is controlled via the SMTP "Transport" linked to whichever "Router" accepted the message/recipient and chose remote delivery via SMTP for it. Ports 465 and 587 are for initial Submission by clients and not for server-to-server traffic (except in special hacky situations such as having your mail-server pretend to be a client, of Gmail/whatever). Unless you've got a special arrangement in place, you're sending on port 25 and using STARTTLS to upgrade the connection. I don't see a Debian control knob for this. From Exim's side, you want the SMTP Transport to include: hosts_require_tls = * -Phil On 2018-02-22, Luciano InfoCultura via Exim-users <exim-users@exim.org> wrote: > How do I make connections initiated on ports 25 or 587 in plain text only > allow the sending of messages after using STARTTLS. > my brief configuration:The message exchange is between servers and do not use > authentication. > ..MAIN_TLS_ENABLE = truedaemon_smtp_ports = 25: 465: 587tls_on_connect_ports > = 465.. I'm guessing you mean inbound. Put this require message=starttls required encrypted=* in the smtp mail ACL "acl_check_mail" on debian systems. -- This email has not been checked by half-arsed antivirus software -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ## -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
[exim] Question TLS
How do I make connections initiated on ports 25 or 587 in plain text only allow the sending of messages after using STARTTLS. my brief configuration:The message exchange is between servers and do not use authentication. ..MAIN_TLS_ENABLE = truedaemon_smtp_ports = 25: 465: 587tls_on_connect_ports = 465.. Luciano da Silva -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/