Sendmail Windows Server 2008 Not Working
Moderator: crythias
-
- Znuny newbie
- Posts: 20
- Joined: 26 Aug 2011, 14:45
- Znuny Version: 3.0.9
- Company: Charonite
Sendmail Windows Server 2008 Not Working
Hello all,
I am currently attempting to set up an OTRS instance with ITSM package. System Configuration involves Windows Server 2008 with OTRS running on admin privileges.
Incoming mails are working just fine with a job continuously fetching mail from the defined mailboxes every x minutes. However I have a huge problem when it comes to sending mail. To give you a brief description we use MS Exchange mailboxes with a specific defined port for our company server. At first I tried using SMTP/S/TL/TLS and it was all for nothing with OTRS returning a Perl CGI error. Next I tried my luck with Sendmail (Indigo for Windows). I tested the protocol via the command line by using-test and email was sent successfully which means that Sendmail will work under this installation of windows. Next I tried using it with OTRS by specifying Sendmail in Core::Sendmail and defining the directory path as c:/sendmail/sendmail.exe -t -console. Now when sending out email OTRS returns no errors and the interface actually shows the email as sent. However no email is actually received and in the Sendmail log i got the following error:
Sending mail from support.blink@sagoss.co.uk to support\.blink\@sagoss\.co\.uk,james\.gatt\@charonite\.com,james.gatt@charonite.com
Subject: Fwd: [Ticket#2011082610000228] Bug123
Error: Unexpected response: 550 5.7.1 Client does not have permissions to send as this sender
Expected ^250
Message delivery failed
Any ideas why this error is happening? Please any feedback whatsoever is appreciated since I literally have run to a deadend.
Many thanks.
Regards,
James
I am currently attempting to set up an OTRS instance with ITSM package. System Configuration involves Windows Server 2008 with OTRS running on admin privileges.
Incoming mails are working just fine with a job continuously fetching mail from the defined mailboxes every x minutes. However I have a huge problem when it comes to sending mail. To give you a brief description we use MS Exchange mailboxes with a specific defined port for our company server. At first I tried using SMTP/S/TL/TLS and it was all for nothing with OTRS returning a Perl CGI error. Next I tried my luck with Sendmail (Indigo for Windows). I tested the protocol via the command line by using-test and email was sent successfully which means that Sendmail will work under this installation of windows. Next I tried using it with OTRS by specifying Sendmail in Core::Sendmail and defining the directory path as c:/sendmail/sendmail.exe -t -console. Now when sending out email OTRS returns no errors and the interface actually shows the email as sent. However no email is actually received and in the Sendmail log i got the following error:
Sending mail from support.blink@sagoss.co.uk to support\.blink\@sagoss\.co\.uk,james\.gatt\@charonite\.com,james.gatt@charonite.com
Subject: Fwd: [Ticket#2011082610000228] Bug123
Error: Unexpected response: 550 5.7.1 Client does not have permissions to send as this sender
Expected ^250
Message delivery failed
Any ideas why this error is happening? Please any feedback whatsoever is appreciated since I literally have run to a deadend.
Many thanks.
Regards,
James
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: Sendmail Windows Server 2008 Not Working
WRT SMTP/TLS/...: What was the error, OTRS was returning?
WRT Sendmail: What does you config look like? Have you enabled authentication? Have you tried to use other sender addresses?
WRT Sendmail: What does you config look like? Have you enabled authentication? Have you tried to use other sender addresses?
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Sendmail Windows Server 2008 Not Working
This means what it says. You don't have permission to send as whatever email address you're using as your send-from. This isn't necessarily password authentication.james_gatt wrote:Client does not have permissions to send as this sender
http://www.google.com/search?sourceid=c ... +sender%22
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 20
- Joined: 26 Aug 2011, 14:45
- Znuny Version: 3.0.9
- Company: Charonite
Re: Sendmail Windows Server 2008 Not Working
It is fixed. The problem was that the mail server set to outgoing had not the necessary rights to 'send-as' mails. Therefore each time the validation on server side fired off. I am now using a separate mail server with a simpler authentication method which allows OTRS to send to different email addresses.
Thanks for your help
Thanks for your help
Re: Sendmail Windows Server 2008 Not Working
I have the same problem.
In my case, it seems that in some outgoing mails (agent notifications) the From field is empty, and Microsoft Exchange is rejecting them.
Why are the From field in these mails empty?
In my case, it seems that in some outgoing mails (agent notifications) the From field is empty, and Microsoft Exchange is rejecting them.
Why are the From field in these mails empty?
OTRS 5.0.15 on CentOSLinux with MariaDB database connected to an Active Directory for Agents and Customers.
Re: Sendmail Windows Server 2008 Not Working
technically this is valid. But you can set an envelope from via sysconfig Core::Sendmail
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Sendmail Windows Server 2008 Not Working
thanks for the comment.jojo wrote:technically this is valid. But you can set an envelope from via sysconfig Core::Sendmail
When we first made sendmail go through exchange, all outgoing emails had an empty From field. I changed SendmailNotificationEnvelopeFrom to make it the same as the inbound account (systems@my_domain). Now the emails to clients and to agents (through Admin Notification) are OK, but the agent notifications (new ticket in my queues, new info in my tickets, things like that) are being rejected by Exchange. In the Exchange logs, we see "From: <>".
Now I've seen that Kernel::System::Email->Send() has the option:
Code: Select all
Loop => 1, # not required, removes smtp from
OTRS 5.0.15 on CentOSLinux with MariaDB database connected to an Active Directory for Agents and Customers.
Re: Sendmail Windows Server 2008 Not Working
No, don't touch the code
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Sendmail Windows Server 2008 Not Working
Well, I commented the "Loop" modifications in Email.pm and still didn't work, mail was still being rejected. So I've undone the changes and I am completely lost.jojo wrote:No, don't touch the code
Any suggestion?
OTRS 5.0.15 on CentOSLinux with MariaDB database connected to an Active Directory for Agents and Customers.
Re: Sendmail Windows Server 2008 Not Working
Ok, We solved it! It was a notification master misconfiguration in sysadmin->Core.juanman80 wrote:Well, I commented the "Loop" modifications in Email.pm and still didn't work, mail was still being rejected. So I've undone the changes and I am completely lost.jojo wrote:No, don't touch the code
Any suggestion?
OTRS 5.0.15 on CentOSLinux with MariaDB database connected to an Active Directory for Agents and Customers.