Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th January 2006, 02:53 PM
micko_escalade Offline
Registered User
 
Join Date: Dec 2005
Posts: 23
Can't get Postfix to send/receive emails

Hi all!

I have VPS (virtual private server) with Fedora 4 installed on it and with 3 virtual domains on it, I installed webmin, apache2, mysql, php are working fine,

I followed instruction Testing Postfix from here
when I try to telnet from windows command prompt to my vps ip
Code:
telnet 207.210.228.XX 25
I get no responde, but when I SSH to my vps using putty and use
Code:
telnet localhost 25
I get welcome message
Code:
220 m5-fedora4-04.myxen.com ESMTP Postfix
and I was able to send test email to yahoo account as instructed in above link

www.dnsreport.com says "Connect to mail servers" Fail link
when I try to send email in outlook I get this error
any help is appreciated!
Reply With Quote
  #2  
Old 30th January 2006, 02:57 PM
micko_escalade Offline
Registered User
 
Join Date: Dec 2005
Posts: 23
Here's the main.cf from postfix all comments are left out so that it can fit in here


Code:
#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION

#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP

#
mail_owner = postfix


#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES

#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld


#mydomain = domain.tld

# SENDING MAIL

#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL


#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost

#proxy_interfaces =
#proxy_interfaces = 1.2.3.4


mydestination = /etc/postfix/local-host-names
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#	mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#

# 
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =


#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL


# 
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host


#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table


#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
#
#relay_domains = $mydestination

# INTERNET OR INTRANET


#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS
ser@domain.tld address.
# 
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#

#in_flow_delay = 1s

# ADDRESS REWRITING
#


# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#


# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE

#
# It will take a minute or so before changes become visible.  Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases


#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)

#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#

#
#home_mailbox = Mailbox
#home_mailbox = Maildir/
 
# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail


#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"


#
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus


#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =


#
# luser_relay works only for the default Postfix local delivery agent.
#

#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
  
# JUNK MAIL CONTROLS
# 

#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE

#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT

#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2


#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

#
debugger_command =
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
	 xxgdb $daemon_directory/$process_name $process_id & sleep 5


#
# debugger_command =
#	PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
#	echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
#	>$config_directory/$process_name.$process_id.log & sleep 5
#
#
# debugger_command =
#	PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
#	-dmS $process_name gdb $daemon_directory/$process_name
#	$process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
# 
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
# 
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command.  This
# is the Sendmail-compatible mail queue listing command.
# 
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands.  This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.2.2/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
home_mailbox = Maildir/
mailbox_command = 
virtual_maps = hash:/etc/postfix/virtusertable
Reply With Quote
  #3  
Old 30th January 2006, 04:36 PM
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 406
You didn't set myhostname and mydomain !!
Will never work !

And did you forward port 25 from your router to your box ?
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #4  
Old 30th January 2006, 04:47 PM
micko_escalade Offline
Registered User
 
Join Date: Dec 2005
Posts: 23
thanks for the reply,
so lets say my domain name is linuxfan.com
how those lines should look?
Code:
myorigin = $myhostname
myorigin = $mydomain
my VPS is a remote machine somewhere in the U.S.A
when I use tihis small app (angry ip) that scans ip for open ports and looks like port 25 is open
http://img81.imageshack.us/img81/4206/angry1yc.jpg

but when I use this site to scan for open port it says no service running on port 25 link
Reply With Quote
  #5  
Old 31st January 2006, 09:04 AM
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 406
myhostname = mymailbox.linuxfan.com
mydomain = linuxfan.com
mynetworks = 10.1.11.0/24, 127.0.0.0/8 #depends on your network
myorigin = $mydomain
inet_interfaces = $myhostname, localhost



Did you forward the port 25 and 110 to your mail box ??

Actually, the ip you try to telnet use PHP 5 and the domain name have the Fedora Core Test Page available...

So i think you try to telnet a box which don't correspond !

Did you have a router ??

Edit : Hey man, have a look to your last link :
Quote:
The host 207.210.228.xx has a service running on port 25 (smtp).
Where is the problem ?

When i try to telent your domain name :
Code:
telnet garaxxx 25
here is the result :
Code:
220 m5-fedora4-04.myxen.com ESMTP Postfix
When i try to telnet to the ip :
Code:
telnet 207.210.228.xx 25
here is the result :
Code:
220 m5-fedora4-04.myxen.com ESMTP Postfix
Everything seems to be OK !!!


No ?
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #6  
Old 31st January 2006, 09:49 AM
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176
also you may be on a blackholed isp

add


relayhost = your ISP's smtp-server

http://stanton-finley.net/forums/vie...c24e66161e0a0a
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #7  
Old 1st February 2006, 02:32 AM
micko_escalade Offline
Registered User
 
Join Date: Dec 2005
Posts: 23
Quote:
Originally Posted by foobar47
myhostname = mymailbox.linuxfan.com
mydomain = linuxfan.com
mynetworks = 10.1.11.0/24, 127.0.0.0/8 #depends on your network
myorigin = $mydomain
inet_interfaces = $myhostname, localhost

I did change it but still can't send
Quote:
mynetworks = 10.1.11.0/24, 127.0.0.0/8 #depends on your network
I wasn't sure about this one,
my VPS (virtual private server) is remote machine in texas, not home network

Quote:
Did you forward the port 25 and 110 to your mail box ??
I can recive now, so I don't think port is blocked

Quote:
Where is the problem ?

When i try to telent your domain name :
Code:

telnet garaxxx 25
why I wasn't able to telnet was because APTR recordes didn't propagate at that time,
but when you tried they already did







this is error log from /var/log/maillog every time I try to send email
Quote:
Jan 31 17:37:46 m5-fedora4-04 postfix/smtpd[1713]: connect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]
Jan 31 17:37:46 m5-fedora4-04 postfix/smtpd[1713]: NOQUEUE: reject: RCPT from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]: 554 <myusername@yahoo.com>: Relay access denied; from=<me@linuxfan.com> to=<myusername@yahoo.com> proto=ESMTP helo=<mickoescalade>
Jan 31 17:37:46 m5-fedora4-04 postfix/smtpd[1713]: disconnect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]
and the other thing that I don't understand is
before I didn't put m5-fedora4-04.myxen.com in local-host-names file in postfix
when I would send test email from yahoo, I would get instant bounce from my domain,
myxen.com is my host domain (I mean where my VPS is) and ip is different then my VPS ip,

I don't know if I should change it to one of my virtual domains ??


Code:
[root@m5-fedora4-04 ~]# hostname -f
m5-fedora4-04.myxen.com
Code:
[root@m5-fedora4-04 ~]# hostname
m5-fedora4-04
Quote:
------------------------------------------------------------------------
This is the Postfix program at host m5-fedora4-04.myxen.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<sample_user@m5-fedora4-04.myxen.com> (expanded from
<me@mydomain.com>):
Host or domain name not found. Name service error for
name=m5-fedora4-04.myxen.com type=A: Host not found
------------------------------------------------------------------------------------------
Reply With Quote
  #8  
Old 1st February 2006, 05:10 AM
micko_escalade Offline
Registered User
 
Join Date: Dec 2005
Posts: 23
I've installed SquirrelMail (web based email) and I was able to send test email to yahoo.com bellow are headers from that email.

---------------------------------------------------------------------------------------
X-Apparently-To:myusername@yahoo.com via 209.191.68.172; Tue, 31 Jan 2006 19:57:05 -0800
X-Originating-IP: [207.210.228.XX]
Authentication-Results: mta134.mail.mud.yahoo.com
from=m5-fedora4-04.myxen.com; domainkeys=neutral (no sig)
Received: from 207.210.228.XX (EHLO m5-fedora4-04.myxen.com) (207.210.228.XX)
by mta134.mail.mud.yahoo.com with SMTP; Tue, 31 Jan 2006 19:57:05 -0800
Received: from m5-fedora4-04.myxen.com (localhost.localdomain [127.0.0.1])
by m5-fedora4-04.myxen.com (Postfix) with ESMTP id 47BF9DF6983
for <myusername@yahoo.com>; Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Received: (from apache@localhost)
by m5-fedora4-04.myxen.com (8.13.4/8.13.4/Submit) id k113vOep001808;
Tue, 31 Jan 2006 19:57:24 -0800
From: sample_user@m5-fedora4-04.myxen.com
X-Authentication-Warning: m5-fedora4-04.myxen.com: apache set sender to marinko@localhost using -f
Received: from 67.171.7.xxx
(SquirrelMail authenticated user sample_user)
by www.mydomain.com with HTTP;
Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Date: Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Subject: test at 7:57
To: myusername@yahoo.com
User-Agent: SquirrelMail/1.4.6 [CVS]-0.cvs20050812.3.fc5
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
-------------------------------------------------------------------------------------
Reply With Quote
  #9  
Old 1st February 2006, 05:51 AM
micko_escalade Offline
Registered User
 
Join Date: Dec 2005
Posts: 23
Quote:
Originally Posted by fedorajim
also you may be on a blackholed isp

add


relayhost = your ISP's smtp-server

http://stanton-finley.net/forums/vie...c24e66161e0a0a
thanks for the link but that didn't work
Reply With Quote
  #10  
Old 1st February 2006, 09:10 AM
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 406
Quote:
Originally Posted by micko_escalade
I wasn't sure about this one,
my VPS (virtual private server) is remote machine in texas, not home network
You should know what is your local ip network !!

Quote:
why I wasn't able to telnet was because APTR recordes didn't propagate at that time,
but when you tried they already did
Yeah, it takes about 24h to propagate...

Quote:
m5-fedora4-04.myxen.com
I recommand you to put a the domain linuxfan.com and not myxen.com...

Imagine you put mymailbox.microsoft.com and you send mail with it... do you think it can be possible than other received mail from a box microsoft.com which is not one ?

You should put the exact domain name !

Sorry for my poor english

Cheers
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #11  
Old 2nd February 2006, 06:08 AM
micko_escalade Offline
Registered User
 
Join Date: Dec 2005
Posts: 23
I added those lines to main.cf
Code:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable=yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients=yes
in /etc/postfix directory did
Code:
mkdir sasl
chown root:root sasl/
chmod 755 sasl/
cd sasl
then created smtpd.conf with this in it
Code:
pwcheck_method: saslauthd
mech_list: digest-md5 cram-md5 plain login
log_level: 3
then run this
Code:
chmod 644 smtpd.conf
chown root:root smtpd.conf
finally that error went away (when trying to send emails), but then re-login box keeps popping up and still can't send
http://img503.imageshack.us/img503/6366/oeauth1ya.jpg

I know I have right username and password because I use same to send/receive in SquirrelMail

here's the /var/log/maillog
Code:
Feb  1 15:32:15 m5-fedora4-04 postfix/smtpd[1690]: connect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]
Feb  1 15:32:16 m5-fedora4-04 postfix/smtpd[1690]: warning: c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]: SASL LOGIN authentication failed
Feb  1 15:32:16 m5-fedora4-04 postfix/smtpd[1690]: disconnect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]
Reply With Quote
Reply

Tags
emails, postfix, send or receive

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can send but no receive mail nad4 Servers & Networking 5 28th June 2009 01:12 PM
How Send and Receive message? alis Programming & Packaging 0 13th June 2009 08:23 AM
I can Send Emails But I cannot Receive Emails jmbiram Using Fedora 18 17th June 2008 11:05 PM
thunderbird email - how to receive my emails from folders jl24 Using Fedora 2 25th March 2008 12:38 PM
Send/Receive RAW IP packet in F7 arrowheart Servers & Networking 2 9th June 2007 06:00 AM


Current GMT-time: 02:52 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat