Re: Centos 6.2 Postfix - forward through SMTP smarthost with SMTP-AUTH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 01/10/2012 05:54 PM, Giles Coochey wrote:
> Hi All,
>
> I have set up three servers in a development environment. Via CR 
> they're updated to Centos 6.2
>
> It appears that these servers have postfix installed on them by 
> default, which unfortunately I'm not very well acquainted with.
>
> All I want is a quick and dirty way to enable these hosts to send 
> email through my own SMTP host.
>
> My (sendmail) SMTP host uses SMTP AUTH on a non-standard port and my 
> dev (virtual env) runs off my laptop, so a dynamic IP.
>
> Does anyone have a quick and dirty configuration for setting up 
> postfix to forward all remote mail through my smarthost?
>
> I'm guessing that I can put the hostname, the port, and the username 
> and password somewhere in the postfix configuration and it will just 
> work...
>
> Many Thanks in Advance,
>
> Giles
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
/etc/postfix

   Edit 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 = uucphost
#relayhost = [an.ip.add.ress]

    I would recommend reading up on the configurations .

-- 

Brian ----- Get the latest Fremont, OH Weather 
http://www.Fremont-OH-Weather.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux