LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2011, 11:18 AM   #16
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112

Quote:
Originally Posted by szboardstretcher View Post
Thats an aphorism for sure.

Using telnet to connect to the mail server, will certainly give you more than just an ack that something is listening. It should give an insight into what is going on. Of course, you have to do this once connected:
Code:
HELO
MAIL FROM:someuser@somehwere.com
RCPT TO:someone@gmail.com
DATA
blah blah blah
.
exit
You should see plenty of output while doing this. After that, the logs are a good place to go.
Ahhh... so basically, you're interactively entering normal smtp commands. As Gru would say, "Light bulb!" Cool trick.
 
Old 03-25-2011, 11:27 AM   #17
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
In /etc/postfix/main.cf,
Code:
inet_interfaces = all
 
1 members found this post helpful.
Old 03-25-2011, 11:59 AM   #18
showe123
Member
 
Registered: Aug 2010
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxgurusa View Post
LOL, no worries.

I use Sendmail all the time, but I will try and help, since I have done Postfix installs as well, much stronger than Sendmail

OK, so ..

Edit /etc/postfix/master.cf file

look for the line with the 127.0.0.1 in it

replace the 127.0.0.1 with 0.0.0.0

save and quit file, restart postfix, let me know




I don't see any line with 127.0.0.1 in it. Here's the output:


Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
1,1
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.







Does that even make any sense?

Thanks.
 
Old 03-25-2011, 12:16 PM   #19
showe123
Member
 
Registered: Aug 2010
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
In /etc/postfix/main.cf,
Code:
inet_interfaces = all
Actually, this worked and I can connect but now I get a relay access denied error when testing. I guess that's another issue though.

Last edited by showe123; 03-25-2011 at 12:17 PM.
 
Old 03-25-2011, 02:11 PM   #20
showe123
Member
 
Registered: Aug 2010
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by showe123 View Post
Actually, this worked and I can connect but now I get a relay access denied error when testing. I guess that's another issue though.
Can anyone help from this point? What is a relay access denied error?
 
Old 03-25-2011, 02:14 PM   #21
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at
http://en.wikipedia.org/wiki/Open_mail_relay

Kind regards
 
Old 03-25-2011, 02:28 PM   #22
showe123
Member
 
Registered: Aug 2010
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
How do I change it from an open relay? And is postfix configured to be an open relay out of the box?

Thanks for all help.
 
Old 03-25-2011, 02:34 PM   #23
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
How do I change it from an open relay? And is postfix configured to be an open relay out of the box?
It's not an open relay, which is good.
Take a look at
http://www.linuxquestions.org/questi...0/#post3857699

Kind regards

Last edited by repo; 03-25-2011 at 02:35 PM.
 
1 members found this post helpful.
Old 03-28-2011, 09:50 AM   #24
showe123
Member
 
Registered: Aug 2010
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxgurusa View Post
LOL, no worries.

I use Sendmail all the time, but I will try and help, since I have done Postfix installs as well, much stronger than Sendmail

OK, so ..

Edit /etc/postfix/master.cf file

look for the line with the 127.0.0.1 in it

replace the 127.0.0.1 with 0.0.0.0

save and quit file, restart postfix, let me know
BTW-I still never found a line with 127.0.0.1 in it and now Im doing another setup and I have the same issue and the inet_interfaces=all isn't solving it this time so I'm assuming this issue is the problem this time around. How do I change the 127.0.0.1 to 0.0.0.0 as it's showing up that way again.

Thanks for help.
 
Old 03-28-2011, 10:11 AM   #25
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
Quote:
Originally Posted by showe123 View Post
BTW-I still never found a line with 127.0.0.1 in it and now Im doing another setup and I have the same issue and the inet_interfaces=all isn't solving it this time so I'm assuming this issue is the problem this time around. How do I change the 127.0.0.1 to 0.0.0.0 as it's showing up that way again.

Thanks for help.
Hi There

My suggestion was wrong, as they sateted, you must change the line

inet_interfaces = all

under your /etc/postfix/main.cf file

The relay problem you have is different issue, where you need to read up on how to allow relay access for postfix

Please read following link for solution

http://www.linuxquestions.org/questi...0/#post3857699
 
Old 03-30-2011, 10:37 AM   #26
showe123
Member
 
Registered: Aug 2010
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxgurusa View Post
Hi There

My suggestion was wrong, as they sateted, you must change the line

inet_interfaces = all

under your /etc/postfix/main.cf file

The relay problem you have is different issue, where you need to read up on how to allow relay access for postfix

Please read following link for solution

http://www.linuxquestions.org/questi...0/#post3857699

I did this too with no success. Im really starting to lose faith in myself here as I just cannot seem to get postfix working correctly. Dovecot's a whole other issue too. I've read just about every guide I can find on the net and I just can't figure out where I'm going wrong. If anyone has any tips or suggestions or has been through this before and found a solution, I would be most grateful. As it is I'm about to throw in the towel and go back to my trusty OS X Server setup.
 
Old 03-31-2011, 03:03 AM   #27
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
Quote:
Originally Posted by showe123 View Post
I did this too with no success. Im really starting to lose faith in myself here as I just cannot seem to get postfix working correctly. Dovecot's a whole other issue too. I've read just about every guide I can find on the net and I just can't figure out where I'm going wrong. If anyone has any tips or suggestions or has been through this before and found a solution, I would be most grateful. As it is I'm about to throw in the towel and go back to my trusty OS X Server setup.
What is your current problem, or rather error message you are getting ?
 
Old 04-01-2011, 10:07 AM   #28
showe123
Member
 
Registered: Aug 2010
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxgurusa View Post
What is your current problem, or rather error message you are getting ?
Connection refused. It appears port 25 is not available for smtp traffic.
 
Old 04-01-2011, 11:34 AM   #29
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Are you getting
Quote:
relay access denied error when testing.
or
Quote:
Connection refused. It appears port 25 is not available for smtp traffic.
It worked before, so what did you changed?
You could connect, but got
Quote:
relay access denied error when testing.
Did you looked at
http://www.linuxquestions.org/questi...0/#post3857699
as suggested before?

Some things to verify
Is port 25 forwarded on the router to the server?
Does the firewall allows traffic on port 25?

Kind regards

Last edited by repo; 04-01-2011 at 11:42 AM.
 
Old 04-01-2011, 12:03 PM   #30
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,848

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by SL00b View Post
Why are you trying to telnet to your smtp port? They're completely different services. Telnet is usually listening on port 21.
He's trying to see if the postfix service is responding. Using telnet in this way is a fairly standard means of testing services.
 
  


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
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
telnet to port 80 nima0102 Linux - Networking 2 11-16-2008 04:26 PM
telnet to port 22 icechong Linux - Newbie 9 03-08-2007 02:25 AM
telnet port 25 frankcchan Linux - Software 2 12-31-2006 12:38 AM
telnet to port 80 davee Linux - Networking 5 08-06-2003 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:15 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