LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 07-31-2008, 02:32 PM   #1
elvisious
Member
 
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45

Rep: Reputation: 15
Question 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
 
Old 07-31-2008, 05:42 PM   #2
elvisious
Member
 
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45

Original Poster
Rep: Reputation: 15
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?
 
Old 07-31-2008, 06:14 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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"
 
Old 08-01-2008, 02:10 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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.
 
Old 08-01-2008, 02:40 PM   #5
elvisious
Member
 
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45

Original Poster
Rep: Reputation: 15
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:

Code:
#postfix reload
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.
 
Old 08-01-2008, 03:03 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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.
 
Old 08-01-2008, 03:09 PM   #7
elvisious
Member
 
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45

Original Poster
Rep: Reputation: 15
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
 
Old 08-01-2008, 04:57 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So is it working now?
 
Old 08-01-2008, 08:01 PM   #9
elvisious
Member
 
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45

Original Poster
Rep: Reputation: 15
Yes

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix can't send email squirtle Linux - Newbie 1 09-24-2006 05:57 AM
My Postfix mailserver can't send out mails directly! gubak Linux - Networking 4 03-28-2006 08:09 PM
Postfix wont send email robmainella Linux - Software 3 12-05-2003 12:05 AM
How to setup Postfix to send email via POP dwynter Linux - Software 2 07-02-2002 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration