Mail issues postfix
up vote
0
down vote
favorite
I need to build a mail server .
I've 5 server which will send mails.
Now I want to setup a mail server which will be sending and receiving mails. But I want my all other 5 server to send SMTP request to my mail server and that mail server will forward it.
Servers LAN-IPs. 10.10.1-5
Mail Server with 2 NIC :
WAN Public : x.x.x.x <== set with MX / SPF / DKIM / PTR / DMARC DNS entries
LAN-IP : 10.10.10.1
Currently I've installed postfix to 5 server and added relayhos= [10.10.10.1] and mynetwork=10.10.1.0/24 on each server .
But when I sent email from any server it shows following logs
Nov 29 10:55:53 localhost postfix/master[13244]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:12:41 localhost postfix/postfix-script[13735]: stopping the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13244]: terminating on signal 15
Nov 29 11:12:41 localhost postfix/postfix-script[13807]: starting the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13808]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:14:12 localhost postfix/pickup[13810]: C66952006DA: uid=0 from=
Nov 29 11:14:12 localhost postfix/cleanup[13825]: C66952006DA: message-id=<20181129061412.C66952006DA@localhost.localdomain>
Nov 29 11:14:12 localhost postfix/qmgr[13811]: C66952006DA: from=, size=498, nrcpt=1 (queue active)
Nov 29 11:14:13 localhost postfix/smtp[13827]: C66952006DA: to=, relay=10.10.10.1[10.10.10.1]:25, delay=1.1, delays=0.1/0.01/0/0.94, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 12D4F8917E)
Nov 29 11:14:13 localhost postfix/qmgr[13811]: C66952006DA: removed
But when I received mail and check source header found my gateway Public IP instead of mail Public Ip.
One of my server configuration :
ponstconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
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 = $myhostname, localhost.$mydomain, localhost
mynetworks = 10.10.1.0/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [10.10.10.1]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
any idea what I did wrong.
linux
add a comment |
up vote
0
down vote
favorite
I need to build a mail server .
I've 5 server which will send mails.
Now I want to setup a mail server which will be sending and receiving mails. But I want my all other 5 server to send SMTP request to my mail server and that mail server will forward it.
Servers LAN-IPs. 10.10.1-5
Mail Server with 2 NIC :
WAN Public : x.x.x.x <== set with MX / SPF / DKIM / PTR / DMARC DNS entries
LAN-IP : 10.10.10.1
Currently I've installed postfix to 5 server and added relayhos= [10.10.10.1] and mynetwork=10.10.1.0/24 on each server .
But when I sent email from any server it shows following logs
Nov 29 10:55:53 localhost postfix/master[13244]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:12:41 localhost postfix/postfix-script[13735]: stopping the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13244]: terminating on signal 15
Nov 29 11:12:41 localhost postfix/postfix-script[13807]: starting the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13808]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:14:12 localhost postfix/pickup[13810]: C66952006DA: uid=0 from=
Nov 29 11:14:12 localhost postfix/cleanup[13825]: C66952006DA: message-id=<20181129061412.C66952006DA@localhost.localdomain>
Nov 29 11:14:12 localhost postfix/qmgr[13811]: C66952006DA: from=, size=498, nrcpt=1 (queue active)
Nov 29 11:14:13 localhost postfix/smtp[13827]: C66952006DA: to=, relay=10.10.10.1[10.10.10.1]:25, delay=1.1, delays=0.1/0.01/0/0.94, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 12D4F8917E)
Nov 29 11:14:13 localhost postfix/qmgr[13811]: C66952006DA: removed
But when I received mail and check source header found my gateway Public IP instead of mail Public Ip.
One of my server configuration :
ponstconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
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 = $myhostname, localhost.$mydomain, localhost
mynetworks = 10.10.1.0/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [10.10.10.1]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
any idea what I did wrong.
linux
@Rui F Ribeiro if you could asist. kindly share your value able input so I might learn some thing.
– Scorpoin
Nov 29 at 8:35
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to build a mail server .
I've 5 server which will send mails.
Now I want to setup a mail server which will be sending and receiving mails. But I want my all other 5 server to send SMTP request to my mail server and that mail server will forward it.
Servers LAN-IPs. 10.10.1-5
Mail Server with 2 NIC :
WAN Public : x.x.x.x <== set with MX / SPF / DKIM / PTR / DMARC DNS entries
LAN-IP : 10.10.10.1
Currently I've installed postfix to 5 server and added relayhos= [10.10.10.1] and mynetwork=10.10.1.0/24 on each server .
But when I sent email from any server it shows following logs
Nov 29 10:55:53 localhost postfix/master[13244]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:12:41 localhost postfix/postfix-script[13735]: stopping the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13244]: terminating on signal 15
Nov 29 11:12:41 localhost postfix/postfix-script[13807]: starting the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13808]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:14:12 localhost postfix/pickup[13810]: C66952006DA: uid=0 from=
Nov 29 11:14:12 localhost postfix/cleanup[13825]: C66952006DA: message-id=<20181129061412.C66952006DA@localhost.localdomain>
Nov 29 11:14:12 localhost postfix/qmgr[13811]: C66952006DA: from=, size=498, nrcpt=1 (queue active)
Nov 29 11:14:13 localhost postfix/smtp[13827]: C66952006DA: to=, relay=10.10.10.1[10.10.10.1]:25, delay=1.1, delays=0.1/0.01/0/0.94, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 12D4F8917E)
Nov 29 11:14:13 localhost postfix/qmgr[13811]: C66952006DA: removed
But when I received mail and check source header found my gateway Public IP instead of mail Public Ip.
One of my server configuration :
ponstconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
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 = $myhostname, localhost.$mydomain, localhost
mynetworks = 10.10.1.0/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [10.10.10.1]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
any idea what I did wrong.
linux
I need to build a mail server .
I've 5 server which will send mails.
Now I want to setup a mail server which will be sending and receiving mails. But I want my all other 5 server to send SMTP request to my mail server and that mail server will forward it.
Servers LAN-IPs. 10.10.1-5
Mail Server with 2 NIC :
WAN Public : x.x.x.x <== set with MX / SPF / DKIM / PTR / DMARC DNS entries
LAN-IP : 10.10.10.1
Currently I've installed postfix to 5 server and added relayhos= [10.10.10.1] and mynetwork=10.10.1.0/24 on each server .
But when I sent email from any server it shows following logs
Nov 29 10:55:53 localhost postfix/master[13244]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:12:41 localhost postfix/postfix-script[13735]: stopping the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13244]: terminating on signal 15
Nov 29 11:12:41 localhost postfix/postfix-script[13807]: starting the Postfix mail system
Nov 29 11:12:41 localhost postfix/master[13808]: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 29 11:14:12 localhost postfix/pickup[13810]: C66952006DA: uid=0 from=
Nov 29 11:14:12 localhost postfix/cleanup[13825]: C66952006DA: message-id=<20181129061412.C66952006DA@localhost.localdomain>
Nov 29 11:14:12 localhost postfix/qmgr[13811]: C66952006DA: from=, size=498, nrcpt=1 (queue active)
Nov 29 11:14:13 localhost postfix/smtp[13827]: C66952006DA: to=, relay=10.10.10.1[10.10.10.1]:25, delay=1.1, delays=0.1/0.01/0/0.94, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 12D4F8917E)
Nov 29 11:14:13 localhost postfix/qmgr[13811]: C66952006DA: removed
But when I received mail and check source header found my gateway Public IP instead of mail Public Ip.
One of my server configuration :
ponstconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
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 = $myhostname, localhost.$mydomain, localhost
mynetworks = 10.10.1.0/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [10.10.10.1]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
any idea what I did wrong.
linux
linux
edited Nov 29 at 8:30
Rui F Ribeiro
38.4k1479128
38.4k1479128
asked Nov 29 at 6:49
Scorpoin
1
1
@Rui F Ribeiro if you could asist. kindly share your value able input so I might learn some thing.
– Scorpoin
Nov 29 at 8:35
add a comment |
@Rui F Ribeiro if you could asist. kindly share your value able input so I might learn some thing.
– Scorpoin
Nov 29 at 8:35
@Rui F Ribeiro if you could asist. kindly share your value able input so I might learn some thing.
– Scorpoin
Nov 29 at 8:35
@Rui F Ribeiro if you could asist. kindly share your value able input so I might learn some thing.
– Scorpoin
Nov 29 at 8:35
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484836%2fmail-issues-postfix%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
@Rui F Ribeiro if you could asist. kindly share your value able input so I might learn some thing.
– Scorpoin
Nov 29 at 8:35