Basic Postfix configuration not working?
up vote
0
down vote
favorite
So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.
I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf
per tutorials online:
After this I try the following command to send an email to myself at gmail:
echo "Body of email" | mail -s "This is the test Subject" x@gmail.com
but nothing gets sent. I do see that they go in the queue:
I do see in the logs that my connection times out when trying to send.
So a bit of detail that may affect the sending:
- Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email
- Do I have to do anything different to my main.cf or am I looking in the wrong place?
- I have confirmed that the service postfix is running
email postfix
add a comment |
up vote
0
down vote
favorite
So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.
I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf
per tutorials online:
After this I try the following command to send an email to myself at gmail:
echo "Body of email" | mail -s "This is the test Subject" x@gmail.com
but nothing gets sent. I do see that they go in the queue:
I do see in the logs that my connection times out when trying to send.
So a bit of detail that may affect the sending:
- Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email
- Do I have to do anything different to my main.cf or am I looking in the wrong place?
- I have confirmed that the service postfix is running
email postfix
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.
I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf
per tutorials online:
After this I try the following command to send an email to myself at gmail:
echo "Body of email" | mail -s "This is the test Subject" x@gmail.com
but nothing gets sent. I do see that they go in the queue:
I do see in the logs that my connection times out when trying to send.
So a bit of detail that may affect the sending:
- Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email
- Do I have to do anything different to my main.cf or am I looking in the wrong place?
- I have confirmed that the service postfix is running
email postfix
So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.
I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf
per tutorials online:
After this I try the following command to send an email to myself at gmail:
echo "Body of email" | mail -s "This is the test Subject" x@gmail.com
but nothing gets sent. I do see that they go in the queue:
I do see in the logs that my connection times out when trying to send.
So a bit of detail that may affect the sending:
- Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email
- Do I have to do anything different to my main.cf or am I looking in the wrong place?
- I have confirmed that the service postfix is running
email postfix
email postfix
asked Nov 21 at 15:42
Eric F
2,73631131
2,73631131
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Port 25 is blocked by my ISP. Would this prevent sending email?
Yes.
I thought that would only block incoming email
Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.
Do I have to do anything different to my main.cf
It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.
Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.
I have confirmed that the service postfix is running
Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.
Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
– Eric F
Nov 21 at 16:53
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Port 25 is blocked by my ISP. Would this prevent sending email?
Yes.
I thought that would only block incoming email
Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.
Do I have to do anything different to my main.cf
It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.
Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.
I have confirmed that the service postfix is running
Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.
Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
– Eric F
Nov 21 at 16:53
add a comment |
up vote
1
down vote
Port 25 is blocked by my ISP. Would this prevent sending email?
Yes.
I thought that would only block incoming email
Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.
Do I have to do anything different to my main.cf
It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.
Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.
I have confirmed that the service postfix is running
Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.
Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
– Eric F
Nov 21 at 16:53
add a comment |
up vote
1
down vote
up vote
1
down vote
Port 25 is blocked by my ISP. Would this prevent sending email?
Yes.
I thought that would only block incoming email
Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.
Do I have to do anything different to my main.cf
It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.
Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.
I have confirmed that the service postfix is running
Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.
Port 25 is blocked by my ISP. Would this prevent sending email?
Yes.
I thought that would only block incoming email
Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.
Do I have to do anything different to my main.cf
It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.
Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.
I have confirmed that the service postfix is running
Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.
answered Nov 21 at 16:08
grawity
229k35481541
229k35481541
Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
– Eric F
Nov 21 at 16:53
add a comment |
Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
– Eric F
Nov 21 at 16:53
Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
– Eric F
Nov 21 at 16:53
Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
– Eric F
Nov 21 at 16:53
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1377323%2fbasic-postfix-configuration-not-working%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