Le 05/11/2015 07:08, Al T a écrit :
I have an Exim + Dovecot virtual domain configuration. My users are defined in Dovecot. Exim requires authentication before allowing any users to send emails to external addresses. The users log in with their full email addresses for the username ([email protected] for example). My exim.conf contains the following: primary_hostname = mail.domain-x.com domainlist local_domains = virtual1.com : virtual2.com : domain-x.com The problem I have is that when a user sends an email from one of the virtual domains ([email protected]), Exim sends the following during the SMTP session when delivering the email: MAIL-FROM: [email protected]@mail.domain-x.com Some domains (including Gmail) reject the message because the MAIL-FROM command does not contain a valid email address. Is there a way to stop Exim from adding the primary_hostname to the MAIL-FROM address? Known problem but the solution found on lists is unclear (look for "sender_retain") or can't work depending on context. Try this : In your acl_check_rcpt, where you put something like : accept authenticated = * control = submission Try : accept authenticated = * control = dkim_disable_verify control = submission/domain=/name= or better : accept authenticated = * control = dkim_disable_verify control = submission/domain=/name={$lookup xxxxsql { SELECT .... to get the real name of virtual user } } -- ## 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/
