how to send mail through another mail server on linux

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am trying to use mailx command but due to firewall it's not working. I tried using mailx on terminal but its giving warnings, as follow:



send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
send-mail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only









share|improve this question























  • Which distro are you on and what is the end goal you wish to achieve?
    – Alexander
    Oct 21 '15 at 11:14










  • I want to design a script that send mail containing another script to multi ple server
    – pooja
    Oct 21 '15 at 11:36






  • 1




    Not necessary that it is the firewall. Did you configure the mailserver on your server to send mails to server the other mailserver? What mailserver did you install? sendmail? postfix? The warning you get is because you do not have IPv6. Look for a parameter like inet_protocols and set it to ipv4 instead of all.
    – Marco
    Oct 21 '15 at 12:06










  • actually it is task given to me and I don't know how to set its parameter..i tried to configure /etc/postfix/main.cf but not working as expected..I am totally confused
    – pooja
    Oct 21 '15 at 12:28














up vote
1
down vote

favorite












I am trying to use mailx command but due to firewall it's not working. I tried using mailx on terminal but its giving warnings, as follow:



send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
send-mail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only









share|improve this question























  • Which distro are you on and what is the end goal you wish to achieve?
    – Alexander
    Oct 21 '15 at 11:14










  • I want to design a script that send mail containing another script to multi ple server
    – pooja
    Oct 21 '15 at 11:36






  • 1




    Not necessary that it is the firewall. Did you configure the mailserver on your server to send mails to server the other mailserver? What mailserver did you install? sendmail? postfix? The warning you get is because you do not have IPv6. Look for a parameter like inet_protocols and set it to ipv4 instead of all.
    – Marco
    Oct 21 '15 at 12:06










  • actually it is task given to me and I don't know how to set its parameter..i tried to configure /etc/postfix/main.cf but not working as expected..I am totally confused
    – pooja
    Oct 21 '15 at 12:28












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am trying to use mailx command but due to firewall it's not working. I tried using mailx on terminal but its giving warnings, as follow:



send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
send-mail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only









share|improve this question















I am trying to use mailx command but due to firewall it's not working. I tried using mailx on terminal but its giving warnings, as follow:



send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
send-mail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only






email






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 at 14:35









Rui F Ribeiro

38.3k1476127




38.3k1476127










asked Oct 21 '15 at 11:08









pooja

61




61











  • Which distro are you on and what is the end goal you wish to achieve?
    – Alexander
    Oct 21 '15 at 11:14










  • I want to design a script that send mail containing another script to multi ple server
    – pooja
    Oct 21 '15 at 11:36






  • 1




    Not necessary that it is the firewall. Did you configure the mailserver on your server to send mails to server the other mailserver? What mailserver did you install? sendmail? postfix? The warning you get is because you do not have IPv6. Look for a parameter like inet_protocols and set it to ipv4 instead of all.
    – Marco
    Oct 21 '15 at 12:06










  • actually it is task given to me and I don't know how to set its parameter..i tried to configure /etc/postfix/main.cf but not working as expected..I am totally confused
    – pooja
    Oct 21 '15 at 12:28
















  • Which distro are you on and what is the end goal you wish to achieve?
    – Alexander
    Oct 21 '15 at 11:14










  • I want to design a script that send mail containing another script to multi ple server
    – pooja
    Oct 21 '15 at 11:36






  • 1




    Not necessary that it is the firewall. Did you configure the mailserver on your server to send mails to server the other mailserver? What mailserver did you install? sendmail? postfix? The warning you get is because you do not have IPv6. Look for a parameter like inet_protocols and set it to ipv4 instead of all.
    – Marco
    Oct 21 '15 at 12:06










  • actually it is task given to me and I don't know how to set its parameter..i tried to configure /etc/postfix/main.cf but not working as expected..I am totally confused
    – pooja
    Oct 21 '15 at 12:28















Which distro are you on and what is the end goal you wish to achieve?
– Alexander
Oct 21 '15 at 11:14




Which distro are you on and what is the end goal you wish to achieve?
– Alexander
Oct 21 '15 at 11:14












I want to design a script that send mail containing another script to multi ple server
– pooja
Oct 21 '15 at 11:36




I want to design a script that send mail containing another script to multi ple server
– pooja
Oct 21 '15 at 11:36




1




1




Not necessary that it is the firewall. Did you configure the mailserver on your server to send mails to server the other mailserver? What mailserver did you install? sendmail? postfix? The warning you get is because you do not have IPv6. Look for a parameter like inet_protocols and set it to ipv4 instead of all.
– Marco
Oct 21 '15 at 12:06




Not necessary that it is the firewall. Did you configure the mailserver on your server to send mails to server the other mailserver? What mailserver did you install? sendmail? postfix? The warning you get is because you do not have IPv6. Look for a parameter like inet_protocols and set it to ipv4 instead of all.
– Marco
Oct 21 '15 at 12:06












actually it is task given to me and I don't know how to set its parameter..i tried to configure /etc/postfix/main.cf but not working as expected..I am totally confused
– pooja
Oct 21 '15 at 12:28




actually it is task given to me and I don't know how to set its parameter..i tried to configure /etc/postfix/main.cf but not working as expected..I am totally confused
– pooja
Oct 21 '15 at 12:28















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%2f237622%2fhow-to-send-mail-through-another-mail-server-on-linux%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%2f237622%2fhow-to-send-mail-through-another-mail-server-on-linux%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

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay