Questions tagged [exim]

Exim is a sendmail-compatible Mail Transfer Agent, licensed under the GPL, designed for Unix-like operating systems.

Exim is a Mail Transfer Agent (MTA), used to route and deliver email, for Unix-like operating systems. As an MTA, it is responsible for email getting from A to B, but not for client access to that email. Exim is used as the default MTA of some Linux distributions and for some control panel software. Its documentation is extensive and exhaustive, in the form of The Exim Specification. An undocumented feature is a bug. More details can be found in the wikipedia article on Exim.

Exim is licensed under the GNU General Public License, with various linking exemptions. There is a great deal of flexibility in the way mail can be routed, and there are extensive facilities for checking incoming mail.

Exim uses an ordered list of Routers to decide how to deliver a given message to a given recipient, accomplishing the delivery with a Transport. It uses a powerful string expansion system to provide configuration flexibility, including lookups of various forms and a wide variety of primitives. Authenticators are used to manage both the client and server side of authentication.

Exim Features

  • SMTP
  • TLS (via either OpenSSL or GnuTLS)
  • SMTP AUTH over a variety of authentication mechanisms, with data from various sources
  • Native support for mbox, mbx, maildir & mailstore formats, plus LMTP to a socket or invoking arbitrary delivery programs.
  • Filtering with Sieve and a powerful native filter language
  • Extensive string expansion configuration language
  • Support for many lookup types (Postgresql, Mysql, Sqlite, Oracle, LDAP, cdb, dbm, lsearch, NIS, DNS, whoson, passwd)
  • Native support for DNSxL lookups, socket communication,
  • An extensive Access Control List (ACL) system for filtering inbound email, with
  • Optional embedded Perl interpreter ${perl...}, plus support for dynamically loading modules ${dlfunc...}
  • Map/filter/reduce functions, lists
  • Strong regular expression support (the original author of Exim is also the author of PCRE, which was written for Exim)

Resources

Debugging guides & tools

How to ask good questions

  • Specify your operating system and version of Exim: uname -sr, lsb_release -d, exim -bV
  • Specify what you are trying to do (and perhaps why)
  • Mention things you have tried already
  • Describe what you are seeing, and how that is not what you expect
  • As appropriate, provide samples of the configuration used and the logs seen
1081 questions
0
votes
0 answers

Exim4 how to relay some recipients to another server

I have a domain managed by two servers, they have different mailboxes but the same domain. How can I set Exim to forward some recipient email to the second server? I checked many tutorial but they always forward to another email address, but I…
Tobia
  • 1,272
  • 9
  • 41
  • 81
0
votes
0 answers

Prevent Exim from sending spam

I have an Exim server for our application and I noticed malicious users registering with our app to send bulk spam. I know that Exim has the ability to integrate with SpamAssassin to prevent the arrival of emails with malicious content. But does it…
Tom
  • 289
  • 3
  • 13
0
votes
1 answer

How to configure Exim4 to relay emails from authenticated users in various locations

I have a Debian cloud server with Exim4 running and serving emails with DMARC, SPF, and DKIM properly set up. I can ssh into the server and send and receive encrypted emails successfully. Dovecot is running on the server and allows clients to…
Jeff12
  • 3
  • 1
0
votes
2 answers

Does exim4's `${sqlite_quote ... }` expansion de-taint the expanded value?

I'm upgrading an exim4 installation which has some custom filters, to Debian 11. (Specifically, the filters are this.) Since that uses Exim 4.94, I've now run into the new-ish "tainted variables" feature, which has broken my filter. Checking Exim in…
wu-lee
  • 115
  • 4
0
votes
1 answer

Process Incoming Mail with External Script with Exim

I have an Exim mail server, it is configured so that each incoming email has its content handled by a PHP file. With the help of a third-party library, my PHP file can extract the subject, sender, recipient, attachments, etc. It happens that there…
Tom
  • 289
  • 3
  • 13
0
votes
1 answer

failed to open /etc/userdomains for linear search: Permission denied (euid=1000 egid=1001)

Here my autoresponder in centos is not working can anyone help me with it. 2022-07-20 09:50:10 1oE6LK-00A004-0j ** alkesh@204.compilor.com R=userautoreply T=userautoreply: Expansion of "${if def:h_Subject: {${if…
be MrZulf
  • 101
  • 2
0
votes
1 answer

Cannot send email using Exim and Dovecot

I've been trying to debug this issue since last week, but I have no clue on what's going on, I have tried to find the answers myself but no luck. I've been trying to send emails, from info@domain.com to info@domain.com, or from…
Budianto IP
  • 141
  • 6
0
votes
1 answer

exim4 authentication with external smtp server for smarthost

/etc/exim4/update-exim4.conf.conf dc_eximconfig_configtype='smarthost' # was local dc_other_hostnames='' # was mini31 dc_local_interfaces='127.0.0.1 ;…
0
votes
1 answer

Hwo to trim email addresses in Exim?

I have a list of emails from client accounts that are built like this: name+somegiberish@gmail.com I have tied looking into configs but haven't found such an option. How do i trim in Exim those emails? I want Exim to remove data from "+" to "@" and…
Vitalik Jimbei
  • 135
  • 2
  • 7
0
votes
1 answer

Configuring Exim to relay messages to an Office 365 server in Debian

Our company recently migrated from an on-site exchange server to Office 365. As a result of this, I need to update our proxy server to relay emails generated by our applications to Office 365. We are currently running exim4 on a Debian server. I…
pbuchheit
  • 151
  • 2
  • 11
0
votes
1 answer

"Certificate is bad" in exim smarthost setup

I am configuring a local exim instance to use an existing server (also exim) as a smart host relay. This is as verbose as the logs seem to be: 2022-06-11 23:59:35.745 [767692] SMTP connection from [173.76.22.149]:54362 I=[10.5.24.98]:587 (TCP/IP…
matt
  • 11
  • 1
0
votes
2 answers

Getting Debian to send email to a real address

I'm running Debian on an old computer on my home network to do stuff like netatalk, dlna,... I have a number of programmes I've written myself that can send e-mail using the credentials for my regular e-mail. I've set up /etc/aliases so that all…
0
votes
1 answer

spamhaus.org is blocking our IP because we use multiple unrelated HELO values

spamhaus.org is blocking our IP because we send mail using multiples domain names from a single IP. The message is A device (computer, server, mobile phone, etc), or an app on a device that is using aaa.bbb.ccc.ddd is infected, badly misconfigured,…
Jean
  • 123
  • 8
0
votes
1 answer

Mail is not sent via php mail() on CentOS7 DirecAdmin Exim php fcgi

I spent the whole day trying to fix this problem, so I decided to share. Maybe it will save someone time) Problem: Mail is not sent via php mail(); The Exim log shows nothing. System: CentOS7 DirecAdmin with CustomBuild 2.0.0 Exim 4 php fcgi (5.6…
0
votes
0 answers

How can I understand if my MX is changing the message envelope?

I have an exim4 server that forwards all input emails to a gmail account. Gmail is refusing some valid messages with this error: SMTP error from remote mail server after end of data: 550-5.7.1 Our system has detected that this message is likely…
Tobia
  • 1,272
  • 9
  • 41
  • 81