LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-19-2008, 10:54 AM   #1
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Rep: Reputation: 15
Mail help


I am completely new to Linux so please excuse me...I have red hat linux es4.

I have inherited a server that has postfix and cyrus-imap installed.
I have a registered domain.
I can and want to use imap at the client end to read mail messages.
I can send mail to various mailboxes on the mail server from external domains. However the SMTP does not appear to be enabled to send out to external domains.
I want to open up the SMTP both ways securely.
I have access to webmin to access key areas of the programs.

Whats steps should I take to be able to send out from the mail server.

Last edited by i_nomad; 03-19-2008 at 10:57 AM.
 
Old 03-20-2008, 02:55 AM   #2
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
Go on some one give me a hint.

smtp port is open.
IMAP is downloading fine.
Cant send external.

In postfix/main.cf

readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
myorigin = $mydomain
myhostname = mail.XXXX.com
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, XXXX.com, XXXX.local
mydomain = XXX.com
mynetworks = 127.0.0.0/8 10.10.0.0/16 10.11.0.0/16 10.12.0.0/16
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination

I guess the last line is key?? smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination
What should I do to proceed?

Kind Regards
 
Old 03-20-2008, 03:50 AM   #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
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination

should be

smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

- note the comma

But thisd isn't stopping you sending

First question, do you know if your ISP allows you to send directly on port 25 (the smtp port)? If they don't or you aren't sure, you should be able to relay through your ISP's smtp server. Suppose their server is smtp.yourISP.com, then simple set

relayhost = smtp.yourISP.com

in main.cf and run postfix reload

Last edited by billymayday; 03-20-2008 at 03:51 AM.
 
  


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
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Import Mail from /var/spool/mail (sendmail) to a MailDir Format in Postfix shawnbishop Linux - Software 0 04-06-2006 10:44 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 06:22 AM


All times are GMT -5. The time now is 11:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration