2 msgRecipient address rejected: User unknown in loc...
1 msgInjecting headers into a database
8 msgAn 'in between' server

Unable to change SMTP server setting
\ Bret Busby (11 Mar 2008)
. \ Evan Platt (11 Mar 2008)
. \ Brian Evans (11 Mar 2008)
. \ (Wietse Venema) (11 Mar 2008)
. . \ Bret Busby (12 Mar 2008)
. . . \ Victor Duchovni (12 Mar 2008)
. . . . \ Bret Busby (12 Mar 2008)
. . . . . \ (Wietse Venema) (12 Mar 2008)

4 msgmasquerade_exceptions for root
3 msgmilter macros {mail_addr} in postfix 2.5.1
2 msgpostfix.org mail server caused weird timeout
3 msgForce smtp to close a connection
4 msgDocumentation Question
5 msgbest practice for using external lists or tables
1 msgRewrite Return-Path in forwarded messages
4 msgRelay domains in cdb format is case sensitive
4 msgPostfix and Mailscanner on different servers?
2 msglocal transport reinjecting message for non-loc...
8 msgHow to make outgoing mail masquerade virtual do...
4 msgUsing Canonical Maps as an Override Option
5 msgPostfix aliases with regular expression
1 msgPostfix Setup help
3 msgAuto-responders and distribution lists
1 msgPostfix SMTP-AUTH authdaemond
Subject:Re: Unable to change SMTP server setting - Viktor's solution worked - thanks
Group:Postfix-users
From:(Wietse Venema)
Date:12 Mar 2008


 
Bret Busby:
> On Tue, 11 Mar 2008, Victor Duchovni wrote:
>
> > The "postconf -e" command will correctly update all
> > the settings for you and warn if it found more than one.
> >
> > # postconf -e "relayhost = [smtp.isp.net]"
> >
> > Don't forget those pesky "[]" around hostnames that are not intended
> > to be used for MX lookups (most ISP outbound relays).
> >
> > --
> > Viktor.
> >
> >
>
> That single command worked.
>
> Thanks, Viktor.
>
> Perhaps, if Kyle Dent releases a later edition of his book "Postfix: The
> Definitive Guide", and Ralf Hildebrandt, if he releases a later edition
> of his book "Postfix" (2001), both could include the instructions above,
> and include an index entry pointing to the instruction, under the
> heading of "SMTP -> setting external SMTP server name", or something
> similar, so that that important information can easily be found.
>
> I note that I was unable to find the inormation above, on the Postfix
> web site.
>
> Again, thank you, Viktor, for your assistance.

1) Both BASIC_CONFIGURATION_README and STANDARD_CONFIGURATION_README
describe the use of relayhost and []. Here is the text from
BASIC_CONFIGURATION_README:

What delivery method: direct or indirect

By default, Postfix tries to deliver mail directly to the Internet. Depending
on your local conditions this may not be possible or desirable. For example,
your system may be turned off outside office hours, it may be behind a
firewall, or it may be connected via a provider who does not allow direct mail
to the Internet. In those cases you need to configure Postfix to deliver mail
indirectly via a relay host.

Examples (specify only one of the following):

/etc/postfix/main.cf:
relayhost = (default: direct delivery to Internet)
relayhost = $mydomain (deliver via local mailhub)
relayhost = [mail.$mydomain] (deliver via local mailhub)
relayhost = [mail.isp.tld] (deliver via provider mailhub)

The form enclosed with [] eliminates DNS MX lookups. Don't worry if you don't
know what that means. Just be sure to specify the [] around the mailhub
hostname that your ISP gave to you, otherwise mail may be mis-delivered.

The STANDARD_CONFIGURATION_README file has more hints and tips for firewalled
and/or dial-up networks.

2) The relayhost parameter is documented in more detail in the
postconf(5) manual page.

relayhost (default: empty)
The next-hop destination of non-local mail; overrides non-local domains
in recipient addresses. This information is overruled with relay_trans-
port, default_transport, sender_dependent_relayhost_maps and with the
transport(5) table.

On an intranet, specify the organizational domain name. If your inter-
nal DNS uses no MX records, specify the name of the intranet gateway
host instead.

In the case of SMTP, specify a domain name, hostname, hostname:port,
[hostname]:port, [hostaddress] or [hostaddress]:port. The form [host-
name] turns off MX lookups.

If you're connected via UUCP, see the UUCP_README file for useful
information.

Examples:

relayhost = $mydomain
relayhost = [gateway.my.domain]
relayhost = uucphost
relayhost = [an.ip.add.ress]

3) Finally MX lookups, and the suppression thereof, are also documented
in the smtp(8) manual page:

SMTP DESTINATION SYNTAX
SMTP destinations have the following form:

domainname

domainname:port
Look up the mail exchangers for the specified domain, and con-
nect to the specified port (default: smtp).

[hostname]

[hostname]:port
Look up the address(es) of the specified host, and connect to
the specified port (default: smtp).

[address]

[address]:port
Connect to the host at the specified address, and connect to the
specified port (default: smtp). An IPv6 address must be format-
ted as [ipv6:address].



© 2004-2008 readlist.com