Running SMTP Conditionally

I’m working on developing a support website and I’m using Gravity Forms to handle the support ticket form. I have the form notification configured so that the "From" shows my client’s email address instead of the email address from the SMTP.

I need it to do this because I have another plugin that pipes emails sent to a specific inbox. That plugin handles the actual help desk. I’m explaining this part to give some background into what I’m trying to accomplish.

Any SMTP plugin that I use will force all emails coming from the website to use the "From" email set up within the plugin. Gravity Forms won’t override the "From" email notification. I want SMTP to work all the time EXCEPCT for when an email is getting sent out with a different "From".

I found some code to execute from my functions.php file that will change the default wp_mail() if the "From" email doesn’t match. Exactly what I want..:

add_filter('wp_mail_from', 'doEmailFilter'); add_filter('wp_mail_from_name', 'doEmailNameFilter');  function doEmailFilter($  email_address){ if($  email_address === "")     return ''; else     return $  email_address; } function doEmailNameFilter($  email_from){ if($  email_from === "WordPress")     return 'Site Admin'; else     return $  email_from; } 

I also found code that will run SMTP from functions.php:

add_action( 'phpmailer_init', 'send_smtp_email' ); function send_smtp_email( $  phpmailer ) {     $  phpmailer->isSMTP();     $  phpmailer->Host       = SMTP_HOST;     $  phpmailer->SMTPAuth   = SMTP_AUTH;     $  phpmailer->Port       = SMTP_PORT;     $  phpmailer->Username   = SMTP_USER;     $  phpmailer->Password   = SMTP_PASS;     $  phpmailer->SMTPSecure = SMTP_SECURE;     $  phpmailer->From       = SMTP_FROM;     $  phpmailer->FromName   = SMTP_NAME; } 

How would I go about combining these two pieces of code so that the SMTP would run and process the the desired "From" email ONLY if the "From" email doesn’t match? Is such a thing possible? Thank you!

Automated SMTP Server Setup Website For Sale LOW RESERVE

Why are you selling this site?
I'm currently starting a new project offline.

How is it monetized?
Various membership levels

How is the website advertised currently?
I've done very little advertising as the website just runs itself due to the word of mouth advertising.

Does this site come with any social media accounts?

How much time does this site take to run?
A few minutes a day

What challenges are there with running this site?
The only…

Automated SMTP Server Setup Website For Sale LOW RESERVE

Using own SMTP server with GSuite

We’ve been having problems recently with our email ending up in junk and after doing some testing it turns out that (some of) the GSuite IPs have been blacklisted, which explains the partial deliverability.

E-mail is very integral to our business so we’d happily pay to have a dedicated IP but Google doesn’t give that option.

Is there a way to force outgoing email to go through a custom SMTP that we’ll setup with another provider that can offer dedicated IPs?

What sequence of actions has to be taken in order to configure DB2 UDB SMTP mail?

I read and tried to run the command provided in the article, even though I fully expect SMTP to not work because my server requires a user name and password authentication that the command is missing.

So, just to try it out, I fired off:

db2 update db cfg using smtp_server 

It threw this error:

SQL1024N  A database connection does not exist.  SQLSTATE=08003 

Are there any prerequisites to the above command that I am missing?

And once we get this to work with the community’s help, how are we supposed to provide user name and password for the SMTP server in DB2 UDB?

550 Please turn on SMTP Authentication in your mail client. server without authentication

I got this message on my Gmail when i sent to my zoho prefessional mail i check all MX , CNAME

Everything is alright, it work perfectly on my web form , but not on gmail when sending an email to my Zoho mail.

On my Track EMail Delivery : Rejected relay attempt:………

Can someone have this problem before help ?

Is it possible to configure SMTP relay on SSRS 2012 RTM?

I am trying to configure SSRS 2012 RTM to work with user and password to a remote SMTP server. In 2016 its working just fine but for some reason on 2012 it doesn’t- when i add the SMTP configuration below and then i try to create an SSRS subscription it will not allow sending subscriptions that are not file share subscriptions. IS this feature supported in 2012? (SMTPAuthenticate= 1)

configuration file SMTP setup: enter image description here

I also checked the error logs and could not find an error. Thanks In advance

Configure SMTP Server to send mails through different other SMTPs [closed]

i’m tring to install a smtp server which uses randomly other smtp-servers to send emails. Here is an example setup:

if a email is send using the smtp server will look in a list or something and select one of the smtps provided there with domain email and password. For example:

It would be nice if the select process is scriptable with python or something or may be completly random.

Thanks for your help.

Securing SMTP server and its logs

Looking for general mail server security best practices here.

I did some research and it’s really hard to find the information out there.

  1. How do you safe guard a smtp server log? Are there any encryption tools out there? Our reason is if the server is compromised, at least the logs are not in plaint text format for attackers to see without obtain our tool/keys.

  2. It seems like most SMTP servers out there stores recipient information in the log files, how can we ensure these information are not stored or at a minimum are scrambled. Is that possible?

Thank you and I’m still researching on the subject.