Can't verify delivery server with different bounce server

darren88

New Member
Hi, I am quite new to setting up MailWhizz, however I have followed the guides and looked up other tutorials.

To me this seems like an odd issue, but it could be something stupid I am doing.

The situation:

I have setup an SMTP delivery server and added a bounce server that uses the same address: members@mail.mydomain.co.uk - this works fine and I can verify the delivery server.

However, when I try to add a bounce server that instead uses a different email address to the delivery server, and try to verify it, I get the issue "Sender is not the same as the SMTP authenticate username".

verification-error-message.PNG
You see in the above, it seems to be trying to send the verification email using the bounce address (bounce@) instead of the delivery address (members@), is this normal?

Is it OK to use the same delivery address as the bounce address, and mailwhizz will handle bounces as expected? Ideally I did want to separate bounce emails from delivery emails.

Here is the setup:
  1. Domain DNS setup for sending: mail.mydomain.co.uk
  2. Has valid DKIM, DMARC, SPF, MX
  3. Using iRedMail and Roundcube on Ubuntu
  4. I have addresses setup that are working (verified to both send and receive): members@, bounce@, postmaster@ etc
  5. I used IMAP connect in the bounce server setting with SSL - connection is fine.
  6. I used SMTP for delivery server with SSL - all works as expected except when I use different bounce address as mentioned
  7. I have cleared system cache and also looked at a suggestion to switch off restrict sending - but this seems like a different issue, because it is trying to send email from the bounce server for verification instead of delivery server

Thanks
 
This seems to be more of an error from the iredmail configuration,
Somebody mentioned it in the past at https://github.com/iredmail/iRedMail/issues/65
You should try and talk to them, there should be no problem having a return-path different than the actual sender of the email.
Alternatively, what you can try first, from backend > settings > common, switch the mailer to symfonymailer and see if you get a different result. AFAIK, SwiftMailer treats the Return-Path email address as the real sender of the email.
 
Thanks Twisted.

I first attempted to change to symfonymailer - it gave basically the same error unfortunately.

Next I added a configuration setting in ired: /opt/iredapd/settings.py

Adding line: ALLOWED_LOGIN_MISMATCH_LIST_MEMBER = True

Restarted iredapd service

This also did not work.

But I have a better idea of where to look now, it seems it is probably with iRedMail configuration.

However, can I confirm with you it is ok to use the same address for delivery and bounce server? Is it right that it is trying to send email using the bounce@ address?

thanks
 
Ok adding the following to the iredmail settings.py configuration worked:

ALLOWED_LOGIN_MISMATCH_SENDERS = ['members@mail.***','bounce@mail.***']

restart the iredapd and postfix service.

It now works.
 
Back
Top