Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
tomsmi
Influencer
Posts: 18
Liked: 1 time
Joined: Jun 07, 2011 8:26 am
Full Name: Tomasz S.
Contact:

SMTP Settings for Veeam Agent for Windows

Post by tomsmi »

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
Dima P.
Product Manager
Posts: 14396
Liked: 1568 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: SMTP Settings for Veeam Agent for Windows

Post by Dima P. »

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.
tomsmi
Influencer
Posts: 18
Liked: 1 time
Joined: Jun 07, 2011 8:26 am
Full Name: Tomasz S.
Contact:

Re: SMTP Settings for Veeam Agent for Windows

Post by tomsmi »

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).
Dima P.
Product Manager
Posts: 14396
Liked: 1568 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: SMTP Settings for Veeam Agent for Windows

Post by Dima P. »

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
tomsmi
Influencer
Posts: 18
Liked: 1 time
Joined: Jun 07, 2011 8:26 am
Full Name: Tomasz S.
Contact:

Re: SMTP Settings for Veeam Agent for Windows

Post by tomsmi »

Hi Dima, thank you for explanation.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 40 guests