postfix 2.6.6 configure IPV6 relayhost

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

postfix 2.6.6 configure IPV6 relayhost

Jeffery Hammond
        I'm trying to configure a GNU server rel 6 to send mail to a remote mail-host.
From maillog
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  mail
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  all
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: name_mask: all
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  sFeMS01-A03.samsung.com
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  samsung.com
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: const  Postfix
Nov  1 03:43:03 FTP01-A01 postfix/smtpd[2323]: dict_eval: expand ${multi_instance_name:postfix}${multi_instance_name?$mult
[root@sFeMS01-A03 log]# tail -f maillog
Nov  1 03:44:04 FTP01-A01 postfix/smtpd[3940]: dict_eval: const  30s
Nov  1 03:44:04 FTP01-A01 postfix/smtpd[3940]: dict_eval: const  300s
Nov  1 03:44:04 FTP01-A01 postfix/smtpd[3940]: dict_eval: const  300s
Nov  1 03:44:04 FTP01-A01 postfix/smtpd[3940]: process generation: 34 (34)
Nov  1 03:44:04 FTP01-A01 postfix/smtpd[3940]: match_string: mynetworks ~? debug_peer_list
Nov  1 03:44:04 FTP01-A01 postfix/smtpd[3940]: match_string: mynetworks ~? fast_flush_domains
Nov  1 03:44:04 FTP01-A01 postfix/smtpd[3940]: match_string: mynetworks ~? mynetworks
Nov  1 03:44:05 FTP01-A01 postfix/master[31878]: warning: process /usr/libexec/postfix/smtpd pid 3940 exit status 1
Nov  1 03:44:05 FTP01-A01 postfix/master[31878]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  1 03:44:05 FTP01-A01 sendmail[2648]: wA13h9qd002648: to=root, ctladdr=root (0/0), delay=00:00:56, xdelay=00:00:55, mailer=relay, pri=32044, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Nov  1 12:10:55 FTP01-A01 sendmail[32477]: wA1CAtVi032477: from=root, size=214, class=0, nrcpts=1, msgid=<[hidden email]>, relay=root@localhost
Nov  1 12:10:55 FTP01-A01 sendmail[32477]: wA1CAtVi032477: to=[hidden email], delay=00:00:00, mailer=esmtp, pri=30214, dsn=4.4.3, stat=queued

postfix]# postconf n
postconf: warning: n: unknown parameter
[root@sFeMS01-A03 postfix]# postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 10
debug_peer_list = 127.0.0.1/8 [::1]/128 [2404:180::e:1]/112
html_directory = no
inet_interfaces = loopback-only
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = samsung.com
mydomain = samsung.com
myhostname = sFeMS01-A03.samsung.com
mynetworks = 127.0.0.1/8 [::1]/128 [2404:180::e:1]/112
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [2404:180::e:103]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_bind_address = [2404:180::e:a106]
unknown_local_recipient_reject_code = 550

please let me know what additional information you need.

Jeff Hammond
Systems Engineer Samsung



Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.6.6 configure IPV6 relayhost

Wietse Venema
Jeffery Hammond:
> please let me know what additional information you need.

A complete transaction that has NO DEBUG logging.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.6.6 configure IPV6 relayhost

Wietse Venema
Wietse Venema:
> Jeffery Hammond:
> > please let me know what additional information you need.
>
> A complete transaction that has NO DEBUG logging.

As in all the logging as Postfix tries to deliver a message, without
the debug logging.

        Wietser
Reply | Threaded
Open this post in threaded view
|

RE: postfix 2.6.6 configure IPV6 relayhost

Jeffery Hammond
I'm sorry do you mean disable debugging logging as in debug_peer_level =0?

Jeff Hammond
Systems Engineer Samsung


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Wietse Venema
Sent: Thursday, November 01, 2018 9:17 AM
To: Postfix users
Subject: Re: postfix 2.6.6 configure IPV6 relayhost

Wietse Venema:
> Jeffery Hammond:
> > please let me know what additional information you need.
>
> A complete transaction that has NO DEBUG logging.

As in all the logging as Postfix tries to deliver a message, without the debug logging.

        Wietser
Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.6.6 configure IPV6 relayhost

Viktor Dukhovni
On Thu, Nov 01, 2018 at 02:29:24PM +0000, Jeffery Hammond wrote:

> I'm sorry do you mean disable debugging logging as in debug_peer_level =0?

As in an empty "debug_peer_list".

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

RE: postfix 2.6.6 configure IPV6 relayhost

Jeffery Hammond
postfix]# postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 10
html_directory = no
inet_interfaces = loopback-only
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = samsung.com
mydomain = samsung.com
myhostname = sFeMS01-A03.samsung.com
mynetworks = 127.0.0.1/8 [::1]/128 [2404:180::e:1]/112
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [2404:180::e:103]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_bind_address = [2404:180::e:a106]
unknown_local_recipient_reject_code = 550

ov  1 14:36:47 FTP01-A01 postfix/postfix-script[18316]: stopping the Postfix mail system
Nov  1 14:36:47 FTP01-A01 postfix/master[31878]: terminating on signal 15
Nov  1 14:36:47 FTP01-A01 postfix/postfix-script[18396]: starting the Postfix mail system
Nov  1 14:36:47 FTP01-A01 postfix/master[18397]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: from=root, size=214, class=0, nrcpts=1, msgid=<[hidden email]>, relay=root@localhost
Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: to=[hidden email], delay=00:00:00, mailer=esmtp, pri=30214, dsn=4.4.3, stat=queued

Jeff Hammond
Systems Engineer Samsung


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Viktor Dukhovni
Sent: Thursday, November 01, 2018 9:35 AM
To: [hidden email]
Subject: Re: postfix 2.6.6 configure IPV6 relayhost

On Thu, Nov 01, 2018 at 02:29:24PM +0000, Jeffery Hammond wrote:

> I'm sorry do you mean disable debugging logging as in debug_peer_level =0?

As in an empty "debug_peer_list".

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.6.6 configure IPV6 relayhost

Viktor Dukhovni
> On Nov 1, 2018, at 10:37 AM, Jeffery Hammond <[hidden email]> wrote:
>
> Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: from=root, size=214, class=0, nrcpts=1, msgid=<[hidden email]>, relay=root@localhost
> Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: to=[hidden email], delay=00:00:00, mailer=esmtp, pri=30214, dsn=4.4.3, stat=queued

That's not Postfix.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

RE: postfix 2.6.6 configure IPV6 relayhost

Jeffery Hammond
Let me share a few more lines, postfix starts but as you said sendmail runs even though I have stopped the process

Nov  1 14:36:47 FTP01-A01 postfix/postfix-script[18316]: stopping the Postfix mail system
Nov  1 14:36:47 FTP01-A01 postfix/master[31878]: terminating on signal 15
Nov  1 14:36:47 FTP01-A01 postfix/postfix-script[18396]: starting the Postfix mail system
Nov  1 14:36:47 FTP01-A01 postfix/master[18397]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: from=root, size=214, class=0, nrcpts=1, msgid=<[hidden email]>, relay=root@localhost
Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: to=[hidden email], delay=00:00:00, mailer=esmtp, pri=30214, dsn=4.4.3, stat=queued

Jeff Hammond
Systems Engineer Samsung


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Viktor Dukhovni
Sent: Thursday, November 01, 2018 9:40 AM
To: Postfix users
Subject: Re: postfix 2.6.6 configure IPV6 relayhost

> On Nov 1, 2018, at 10:37 AM, Jeffery Hammond <[hidden email]> wrote:
>
> Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: from=root,
> size=214, class=0, nrcpts=1,
> msgid=<[hidden email]>,
> relay=root@localhost Nov  1 14:36:58 FTP01-A01 sendmail[18585]:
> wA1EawPP018585: to=[hidden email], delay=00:00:00, mailer=esmtp,
> pri=30214, dsn=4.4.3, stat=queued

That's not Postfix.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.6.6 configure IPV6 relayhost

Bill Cole-3
On 1 Nov 2018, at 11:08, Jeffery Hammond wrote:

> Let me share a few more lines, postfix starts but as you said sendmail
> runs even though I have stopped the process

Programs that send mail typically use the sendmail binary at (or
symlinked from) /usr/sbin/sendmail. You need to replace that  binary
from Sendmail with the sendmail binary from Postfix. *USUALLY* a proper
installation of Postfix will do that for you. Try running "alternatives
--config mta" to see if the alternatives subsystem is aware of the
existence of both sendmail binaries and if so, you can use the
'alternatives' utility to fix the linkage.


Reply | Threaded
Open this post in threaded view
|

RE: postfix 2.6.6 configure IPV6 relayhost

Jeffery Hammond
In reply to this post by Viktor Dukhovni
I found it. Used 'alternatives --config mta' to change  sendmail to postfix. It's working now.
Thanks.
Jeff Hammond
Systems Engineer Samsung


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Viktor Dukhovni
Sent: Thursday, November 01, 2018 9:40 AM
To: Postfix users
Subject: Re: postfix 2.6.6 configure IPV6 relayhost

> On Nov 1, 2018, at 10:37 AM, Jeffery Hammond <[hidden email]> wrote:
>
> Nov  1 14:36:58 FTP01-A01 sendmail[18585]: wA1EawPP018585: from=root,
> size=214, class=0, nrcpts=1,
> msgid=<[hidden email]>,
> relay=root@localhost Nov  1 14:36:58 FTP01-A01 sendmail[18585]:
> wA1EawPP018585: to=[hidden email], delay=00:00:00, mailer=esmtp,
> pri=30214, dsn=4.4.3, stat=queued

That's not Postfix.

--
        Viktor.