Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-31-2008, 02:32 PM
|
#1
|
Member
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45
Rep:
|
Postfix: cant send email from my Windows pc using my postfix mailserver
Hi,
Ik have installed a mailserver with: Postfix, Dovecot and fetchmail.
Most of all works fine:
I can fetch my mail with fetchmail on my server.
I can send mail with Postfix on my server.
I can get my mail with Outlook on my Windows system from my server.
The only that doesn't work is that I can not send mail from my Windows system using my mail server...
When I do a port scan on my mail server all nessesary port are open (110, 143) but port 25 is closed. Isn't this the port that Outlook uses to send mail?
( When I stop Postfix and I start Sendmail I have the same problem )
Can somebody help me?
Greetz
Dion
|
|
|
07-31-2008, 05:42 PM
|
#2
|
Member
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45
Original Poster
Rep:
|
I now have installed Squirrelmail too and its working OK. Squirrelmail is installed on the mailserver.
So the problem is still the same: How can I use my mailserver from my Windows machine to send email?
|
|
|
07-31-2008, 06:14 PM
|
#3
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
Have a look in the maillogs for what happens. I'll bet it's the mynetworks section in main.cf, but post the output of "postconf -n"
|
|
|
08-01-2008, 02:10 AM
|
#4
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
This sounds like the mail server is listening only on the loopback interface.
What is the output of
netstat -aln --tcp
or iptables is blocking the port.
iptables -L
Last edited by Mr. C.; 08-01-2008 at 02:11 AM.
|
|
|
08-01-2008, 02:40 PM
|
#5
|
Member
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45
Original Poster
Rep:
|
Hi
Thanks! You both where right:
I put this line in /etc/postfix/main.cf:
Code:
mynetworks = 192.168.100.0/24, 127.0.0.0/8
And then I gave the command:
Nothing happens. So I read my /var/log/maillog:
Code:
postfix/master[20133]: warning: service smtp: ignoring inet_interfaces change
postfix/master[20133]: warning: to change inet_interfaces, stop and start Postfix
And then I did this:
Code:
#postfix stop
#postfix start
Last edited by elvisious; 08-01-2008 at 02:50 PM.
|
|
|
08-01-2008, 03:03 PM
|
#6
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Setting mynetworks does not change inet_interfaces. In fact, the log message indicates you also changed inet_interfaces. This was the variable change that was required.
mynetworks tells postfix what mail clients to consider as local and hence trusted.
|
|
|
08-01-2008, 03:09 PM
|
#7
|
Member
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45
Original Poster
Rep:
|
Yes. You are right again. I did some things and I wanted to put the things I did in this forum and then I forgot the inet_interfaces thing.
I did this in the main.cf:
Code:
inet_interfaces = all
|
|
|
08-01-2008, 04:57 PM
|
#8
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
So is it working now?
|
|
|
08-01-2008, 08:01 PM
|
#9
|
Member
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45
Original Poster
Rep:
|
Yes
|
|
|
All times are GMT -5. The time now is 03:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|