LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-16-2004, 11:01 PM   #1
Ikik
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Rep: Reputation: 15
Postfix able to send but not receive mail :( !!


Hi ,

i am trying to set up a mail server for the company i work for , however i ain't expert in linux

been trying to set the mail up for days and so far only manage to send mail but no success in receiving any

the MTA i am using is postfix , whereas for the POP , IMAP or SMTP , i don really understand but using chkconfig to check it seems like the POP3S, IMAPS are on , as for SMTP dunno about it but i heard it comes with POSTFIX .

the distro i am using is REDHAT 9.

here is the main.cf from postconf -n :

Code:
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = company.com
myhostname = mailserver.company.com
mynetworks = 192.168.0.0/24, 192.168.1.0/24, 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name
the mail that i managed to send out are originated as from user@mailserver.company.com but when i reply to it, the yahoo(which i tested on) mailer daemon returns failure

however if i omited the mailserver out so only user@company.com left , the mailer daemon did not return any error message but the user also did not receive any mail

any help on this would be really appreciated by the way how do we create a mail address for a user? are they automatically created when we add the user to the server?

tia
 
Old 01-17-2004, 04:58 AM   #2
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
Ok, yes, your mail users should be automatically added when they are added to the system.

try telnetting into it see if you get a response. Try it first on local host, then from the web to be sure it is not an issue with iptables blocking your port 25, or a firewall blocking port 25.
 
Old 01-18-2004, 10:07 AM   #3
Flibble
Member
 
Registered: Mar 2002
Distribution: Redhat 9.0, Debian, Knoppix, YellowDog
Posts: 142

Rep: Reputation: 15
I assume you have set up your MX records correctly in DNS?
 
Old 01-18-2004, 08:34 PM   #4
Ikik
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
ezra143, thanks for your reply

i 've tried to telnet to localhost 25 from the terminal and it responsed, but when i tried it on the browser http://localhost:25 , it gave me some reply about the port has been disabled for security reason.

please correct me if i am wrong

i then set the port 25 to be opened in the firewall using

'iptables -A INPUT -p tcp --dport 25 -j ACCEPT'

after that i can receive mail from the outside(from yahoo.com) but will this post a security threat since i have heard that port 25 is not a safe port? are there any other ports to replace this one? please enlight me on these



Flibble , thanks for your reply

i think i might have set my MX record correctly , anyway is there any way for me to check it ?
maybe from certain files?

thanks
 
Old 01-18-2004, 09:22 PM   #5
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
ok, if you can telnet into your machine on port 25 then you have got a working MTA (so to speak) you shouldn't be able to see anythig from your browser, as there is nothing to see.

you DNS records are set when you register your domain name (you site name) and are typically done with a domain registrar. Ie: register.com or Dyndns.org

ok, what does your alias settings look like?

Last edited by ezra143; 01-18-2004 at 09:34 PM.
 
Old 01-18-2004, 09:58 PM   #6
Ikik
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
err?? which alias setting you meant , ezra143?

was it the /etc/postfix/aliases file?

sorry if i did not get what you mean
 
Old 01-18-2004, 10:02 PM   #7
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
probably, I am not familiar with postfix... It should list all the names you machine will be known by. IE: mail.domain.com, domain.com, mailsserver.domain.com
 
Old 01-19-2004, 12:36 AM   #8
Ikik
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
err cannot find the files you mention except the one in main.cf which i have posted at the start of this thread

by the way i just found out that i can only send and receive mail using pine,

i tried to configure evolutions with setting : receiving mail (pop.company.com) and sending mail (mail.company.com) but it did not work , maybe i misconfigured evolutions or the postfix main.cf files. any hints on these please thanks

nb: my main.cf is posted at the start of this thread

thanks
 
Old 01-19-2004, 12:39 AM   #9
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
smtp.company.com
 
Old 01-19-2004, 12:46 AM   #10
Flibble
Member
 
Registered: Mar 2002
Distribution: Redhat 9.0, Debian, Knoppix, YellowDog
Posts: 142

Rep: Reputation: 15
host -t MX company.com
 
Old 01-28-2004, 07:40 PM   #11
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
mydestination = $myhostname, localhost.$mydomain $mydomain

there's no mailserver.company.com here so it won't accept mail to that address.

Only what's listed as mydestination will be sent to local mailboxes, all else will be relayed if it's allowed.


check your log files
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't send or receive mail using Kmail solar1951 Mandriva 2 05-25-2005 02:58 PM
Postfix send, but will not receive (or display in logs) jules_fraser Linux - Networking 0 01-01-2005 07:46 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM
postfix standard manner, send/receive JM_Fraser Linux - Networking 3 11-26-2003 05:15 AM
Why can't I receive or send mail unless jobesd Linux - General 0 12-05-2001 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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