Topic: syntax error - Send out email from specified IP address
- iRedMail version (check /etc/iredmail-release): 0.9.7 PGSQL edition.
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====
Hey all,
I have two domains and two pulbic IP's with each IP associated per domain.
My goal is messages send from a different IP for the second domain.
I've preciesley followed this guide to do that: https://docs.iredmail.org/send.out.emai … esses.html
However, /var/log/maillog throws the following errors:
Jan 11 21:26:53 mail postfix/smtpd[4062]: fatal: /etc/postfix/main.cf, line 335: missing '=' after attribute name: "domain2-smtp unix - - n - - smtp -o smtp_bind_address=x.x.x.x -o smtp_helo_name=domain2.com -o syslog_name=postfix-domain2-com"
Jan 11 21:26:54 mail postfix/master[2290]: warning: process /usr/lib/postfix/sbin/smtpd pid 4062 exit status 1
Jan 11 21:26:54 mail postfix/master[2290]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
Jan 11 21:26:55 mail roundcube: ERROR: Invalid response code received from server (-1)
Jan 11 21:26:56 mail postfix/trivial-rewrite[4064]: fatal: /etc/postfix/main.cf, line 335: missing '=' after attribute name: "domain2-smtp unix - - n - - smtp -o smtp_bind_address=x.x.x.x -o smtp_helo_name=domain2.com -o syslog_name=postfix-domain2-com"
Jan 11 21:26:57 mail postfix/master[2290]: warning: process /usr/lib/postfix/sbin/trivial-rewrite pid 4064 exit status 1
Jan 11 21:26:57 mail postfix/master[2290]: warning: /usr/lib/postfix/sbin/trivial-rewrite: bad command startup -- throttling
Here are the additions I added to /etc/postfix/main.cf
sender_dependent_default_transport_maps = pcre:/etc/postfix/sdd_transport.pcre
domain2-smtp unix - - n - - smtp
-o smtp_bind_address=x.x.x.x
-o smtp_helo_name=domain2.com
-o syslog_name=postfix-domain2
And /etc/postfix/sdd_transport.pcre
/@domain2\.com$/ domain2-smtp:
Any ideas on the fix?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.