1

Topic: Setting an SMTP Gateway?

Because I don't have a fixed IP address, I keep getting my outgoing SMTP posts blocked.

I could, keep removing myself from the spam lists but that gets tedious.
When I was using XMail, I was able to set an SMTPGateway=
Can anyone tell me where/if there is an equivalent under Postfix?

Regards, Martin

----

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

2

Re: Setting an SMTP Gateway?

it's "relayhost =" in postfix.

3

Re: Setting an SMTP Gateway?

ZhangHuangbin wrote:

it's "relayhost =" in postfix.

It that "relayhost=hostname.domainname" in /etc/postfix/main.cf?
Because, this is a section of my main.cf:

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
relayhost = smtp.talktalk.net

But when I try postconf -n, I get this:

readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
relayhost =
relocated_maps =
sample_directory = /usr/share/doc/packages/postfix-doc/samples

4

Re: Setting an SMTP Gateway?

If you changed 'relayhost =', don't forget to restart postfix to make it work.

5

Re: Setting an SMTP Gateway?

Yep. Tried that. Both /etc/init.d/postfix restart.
And when that didn't work, rebooted.

Ha! As I write this, it dawns on me that this is is a classic case case of multiple entries!
At the bottom of main.cf are the automated entries!!!! And relayhost is null!

Regards, Martin