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.










share|improve this question
























  • @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















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.










share|improve this question
























  • @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













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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • @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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre