[SOLVED] Testing MultipleSMTP

Moderator: crythias

Post Reply
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

[SOLVED] Testing MultipleSMTP

Post by gecelann »

Hi,

Good day!
I would like to know if how would I know if my other email address that is configured in SMTP settings is working? I'm testing a ticket that will send me notification but it keeps on sending the primary email that I used in my last setting in sendmail, but I already change it into multismtp. What are the things that i need to check to use my other account? it will be a helpful for us in order to avoid exceeding quota in our email.

Thank you!
Last edited by gecelann on 05 Oct 2016, 07:27, edited 2 times in total.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Testing MultipleSMTP

Post by reneeb »

You could do this:

* Enable MultiSMTP-Debugging in SysConfig
(* for OTRS >= 5: set minimum log level to debug in SysConfig (Core -> Core::Log))
* create an email ticket in a sample queue
* change queue mail address
* create an other email ticket in the queue

Then you should see the debugging out in the OTRS logs. This tells you if the MultiSMTP settings work...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: Testing MultipleSMTP

Post by gecelann »

reneeb wrote:You could do this:

* Enable MultiSMTP-Debugging in SysConfig
(* for OTRS >= 5: set minimum log level to debug in SysConfig (Core -> Core::Log))
* create an email ticket in a sample queue
* change queue mail address
* create an other email ticket in the queue

Then you should see the debugging out in the OTRS logs. This tells you if the MultiSMTP settings work...
Hi reneeb!

Thanks for the fast reply!
* change queue mail address
* create an other email ticket in the queue
Should this be two have different email address? or I'll use just one email add?

What will be the sender of the email? the one that you choose in mail address? or the one that I use in SMTP?
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: Testing MultipleSMTP

Post by gecelann »

reneeb wrote:You could do this:

* Enable MultiSMTP-Debugging in SysConfig
(* for OTRS >= 5: set minimum log level to debug in SysConfig (Core -> Core::Log))
* create an email ticket in a sample queue
* change queue mail address
* create an other email ticket in the queue

Then you should see the debugging out in the OTRS logs. This tells you if the MultiSMTP settings work...
Hi reneeb!

Thanks for the fast reply!
* change queue mail address
* create an other email ticket in the queue
Should this be two have different email address? or I'll use just one email add?

What will be the sender of the email? the one that you choose in mail address? or the one that I use in SMTP?

I Just had a testing and this is the details in my syslog.
Selection_038.png
different in my SMTP configuration
Selection_039.png
Selection_040.png
And this is my configuration in sendmailmodule
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Testing MultipleSMTP

Post by reneeb »

What MultiSMTP does: It checks the sender of an email and checks whether an MultiSTMP configuration exists for that mail address. If one exists, it uses the SMTP settings configured in MultiSMTP, otherwise it uses the global settings from Core::Sendmail (SysConfig).

Your queue seems to use the mail address sbitcontactdesk@.... For that address no MultiSMTP configuration exists, hence it uses the global settings.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: Testing MultipleSMTP

Post by gecelann »

reneeb wrote:What MultiSMTP does: It checks the sender of an email and checks whether an MultiSTMP configuration exists for that mail address. If one exists, it uses the SMTP settings configured in MultiSMTP, otherwise it uses the global settings from Core::Sendmail (SysConfig).

Your queue seems to use the mail address sbitcontactdesk@.... For that address no MultiSMTP configuration exists, hence it uses the global settings.
Ohhhh okay! thank you! What If I use notification (events)? and add Recipient email addresses with many queues selected in the notification?
Which one will use the sender? is it in global settings or in MultiSMTP?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Testing MultipleSMTP

Post by reneeb »

The recipient doesn't matter. Which settings are used depend on the sender. For notifications, it's the NotificationSenderEmail (SysConfig).
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: Testing MultipleSMTP

Post by gecelann »

reneeb wrote:The recipient doesn't matter. Which settings are used depend on the sender. For notifications, it's the NotificationSenderEmail (SysConfig).
Thank you reneeb!
But I use notification event and the one that I assigned in the queue is the one that sends the email.
See the screenshots and that is what i want to achieved all thanks to you reneeb! cheers!! :D :D :D
Selection_043.png
Selection_044.png
Selection_045.png
You do not have the required permissions to view the files attached to this post.
kongyong92
Znuny newbie
Posts: 43
Joined: 15 Sep 2017, 11:40
Znuny Version: OTRS v5.0.10
Real Name: Kong-Yong
Company: Rhenus Logistics

Re: [SOLVED] Testing MultipleSMTP

Post by kongyong92 »

Dear gecelann,

I am trying to achieve what you've done but I don't seem to be able to find the exact place to do the necessary configuration though.

Could you kindly share more with regard to the steps taken?

Really appreciate your help on this.

Thanks!
Best regards,
Kong-Yong
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: [SOLVED] Testing MultipleSMTP

Post by reneeb »

First of all, you need to install the MultiSMTP addon (https://opar.perl-services.de/dist/MultiSMTP). Then you get a new menu item in the admin area.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply