Topic: Internal Mail relay
System: CentOS 5.8 64-bit
iRedmail 0.7.4 (LDAP)
iRedadmin Pro 1.6.4 LDAP
Could anybody please help me with the following:
I need to be able to send admin mails from several internal systems WITHOUT loggin in. Exemple:
I have a network 10.50.50.0-255
I have hosts with various OS such as Windows, Linux etc. Scripts written in Perl or windows powershell should send some administrative messages to an administrator mailbox. This should be done without beeing logged in. How can I set this up? Currently I get error messages as follows:
Mar 27 07:02:03 sedna postfix/smtpd[24214]: connect from unknown[10.50.50.10]
Mar 27 07:02:05 sedna postfix/smtpd[24214]: warning: unknown[10.50.50.10]: SASL login authentication failed: UGFzc3dvcmQ6
Mar 27 07:02:05 sedna postfix/smtpd[24214]: NOQUEUE: reject: RCPT from unknown[10.50.50.10]: 553 5.7.1 <abc@xyz.com>: Sender address rejected: not logged in; from=<abc@xyz.com> to=<cdf@anotherdomain.com> proto=ESMTP helo=<GALAXY>
Mar 27 07:02:05 sedna postfix/smtpd[24214]: lost connection after RCPT from unknown[10.50.50.10]
Mar 27 07:02:05 sedna postfix/smtpd[24214]: disconnect from unknown[10.50.50.10]
(Names and hosts replaced with nonsense names)
In the above exemple abc@xyz.com should be able send an email using iRedMail server to cdf@anotherdomain.com WITHOUT being logged in. Using POWERSHELL this is a simple script as follows:
param(
[string] $From = "abc@xyz.com",
[string] $To = "cdf@anotherdomain.com",
[string] $Title = "title",
[string] $Body = "body"
)
$SmtpClient = New-Object System.Net.Mail.SmtpClient("myhost.xyz.com", 25);
$SmtpClient.Send($From,$To,$Title,$Body)
Relaying MUST ONLY WORK for INTERNAL mails, e.g. all mails sent from hosts with IP 10.50.50.*
How can I set this up in iRedMail ??
Many thanks
Thomas
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.