1

Topic: Relay whit sendmail

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi  ,  can i  config my mail server to make a relay on  ONLY my  sendmail script.
I have some like this

mail.sh

#!/bin/sh
echo -e "From: mymail@gmail.com\nTo: domain@domain.com\nSubject: XXXxxxx\n\nHola Sergio-Armando podrias enviarme lista \nMuchas Gracias.\" | sendmail -t  
exit

When i run my bash this send  from  return path root@mail.mydomain.tld
and go to spam folders i need  to fix this.
Can i setup a relay from sendmail.
Thx!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Relay whit sendmail

- If you're sending email from localhost (iRedMail), this should be fine.
- Best option: send email with SMTP authentication.