SMTP Settings for Veeam Agent for Windows

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

SMTP Settings for Veeam Agent for Windows

Veeam Logoby tomsmi » Fri Feb 10, 2017 11:43 am

Hi, if my smtp server requires authentication but presents itself with self signed one, how can i import this certificate to be trusetd by Veeam Agent for Windows?
Part of Svc.VeeamEndpointBackup when trying to send test e-mail:

Code: Select all
10.02.2017 12:35:27] <18> Info     Use secure connection: True
[10.02.2017 12:35:27] <18> Info     Username: veeam@lab.local
[10.02.2017 12:38:27] <24> Info     Sending email notification, server 'iredmail.lab.local', port '587', timeout '180000', use ssl 'True', to 'veaam@lab.local'
[10.02.2017 12:38:27] <24> Error    Failure sending mail. (System.Net.Mail.SmtpException)
[10.02.2017 12:38:27] <24> Error       at Veeam.Backup.Common.Network.SendMailEx.SendMailWithCancellation(SmtpClient client, MailMessage message, CancellationToken token)
[10.02.2017 12:38:27] <24> Error       at Veeam.Backup.Core.Components.Reports.CReportMailer.SendMessage(ISmtpClient smtpClient, MailMessage message, Nullable`1 cancellationToken)
[10.02.2017 12:38:27] <24> Error    The remote certificate is invalid according to the validation procedure. (System.Security.Authentication.AuthenticationException)
[10.02.2017 12:38:27] <24> Error       at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
[10.02.2017 12:38:27] <24> Error       at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
[10.02.2017 12:38:27] <24> Error       at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
[10.02.2017 12:38:27] <24> Error    Failed to send test email
tomsmi
Influencer
 
Posts: 18
Liked: 1 time
Joined: Tue Jun 07, 2011 8:26 am
Full Name: Tomasz S.

Re: SMTP Settings for Veeam Agent for Windows

Veeam Logoby Dima P. » Fri Feb 10, 2017 11:28 pm

Hello and welcome Tomasz,

Try to install your certificate on local machine like described in this article - Managing trusted root certificates for a local computer and let me know how it goes. Thanks.
Dima P.
Veeam Software
 
Posts: 5843
Liked: 418 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: SMTP Settings for Veeam Agent for Windows

Veeam Logoby tomsmi » Sat Feb 11, 2017 11:28 am

Thank you Dima, It really worked well!

But there is another thing that is not clear for me now.
I am able to send mail only if I enter credentials of a user that is able send and receive e-mail in my e-mail server. And this must be the same user.

So, this setting works:
Image


But this settings results in errors on e-mail server:
Image

Errors:
Code: Select all
Feb 11 12:22:03 iredmail postfix/submission/smtpd[32315]: connect from vtp3.lab.local[192.168.0.14]
Feb 11 12:22:03 iredmail postfix/submission/smtpd[32315]: Anonymous TLS connection established from vtp3.lab.local[192.168.0.14]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Feb 11 12:22:03 iredmail postfix/trivial-rewrite[32317]: warning: do not list domain lab.local in BOTH mydestination and virtual_mailbox_domains
Feb 11 12:22:03 iredmail postfix/submission/smtpd[32315]: NOQUEUE: reject: RCPT from vtp3.lab.local[192.168.0.14]: 554 5.7.1 <vtp3@lab.local>: Recipient address rejected: Sender is not same as SMTP authenticate username; from=<vtp3@lab.local> to=<vtp3@lab.local> proto=ESMTP helo=<vtp3>
Feb 11 12:22:03 iredmail postfix/submission/smtpd[32315]: lost connection after RCPT from vtp3.lab.local[192.168.0.14]
Feb 11 12:22:03 iredmail postfix/submission/smtpd[32315]: disconnect from vtp3.lab.local[192.168.0.14]


I'd like to have situation that I can have one service e-mail account in company for e-mail notifications, and those e-mails could be received by another user (for example: every owner of workstation or server can receive e-mail about backup of his own machine).
tomsmi
Influencer
 
Posts: 18
Liked: 1 time
Joined: Tue Jun 07, 2011 8:26 am
Full Name: Tomasz S.

Re: SMTP Settings for Veeam Agent for Windows

Veeam Logoby Dima P. » Sat Feb 11, 2017 6:32 pm

Hi Tomasz,

That true. VAW allows to use a single FROM/TO email address. You set different From and To address via API like described here
Dima P.
Veeam Software
 
Posts: 5843
Liked: 418 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: SMTP Settings for Veeam Agent for Windows

Veeam Logoby tomsmi » Sun Feb 12, 2017 12:29 pm

Hi Dima, thank you for explanation.
tomsmi
Influencer
 
Posts: 18
Liked: 1 time
Joined: Tue Jun 07, 2011 8:26 am
Full Name: Tomasz S.


Return to Veeam Agent for Windows



Who is online

Users browsing this forum: obijay and 6 guests