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 04-22-2006, 06:24 PM   #1
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Rep: Reputation: 30
Set up mail of Fedora Core 5


Hello,

I have a question abolut mail set up. There lots of info out there but I am still not sure how this can be done.

Currently, I've got a servlet that sends out emails to users per their request. I use gmail services for it (smtp). Everything is coded in Java.

I've got a domain registered www.mydomain.net with www.dyndns.com service.
I want to be able to send out email and have the following email: myname@mydomain.net or support@mydomain.net.

How can I set this all up?
How can I access it later on? Is there a nice gui for it?

Thank you.
 
Old 04-22-2006, 07:17 PM   #2
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
I've been using a mail server called Postfix for a while now, it uses smtp for both outbound and incoming. I have never had any problem with it whatsoever. Basically, by default it sets it up so that every user on your Linux box (or the ones you specify) has there own email account (<username>@yourdomain.tld). For a GUI, all I use Webmin. Webmin has the capability of managing all kinds of servers and many other things on your system (including Postfix). Before expecting it to work automatically, I suggest that if you use Webmin and Postfix, that you take a look at the Postfix section on one of the books you can download on Webmin's website. Also, if you are giving more than one person email accounts, you can use Usermin as a front end for sending, receiving, and reading mail.

http://www.postfix.org/
http://www.webmin.com/

EDIT: Also, if you just want to use gmail, you can setup your gmail account to receive and send mail in the domain and user of your choice, but you first must have a mail server setup to receive the confirmation email from gmail.

Last edited by pdeman2; 04-22-2006 at 07:20 PM.
 
Old 04-22-2006, 07:29 PM   #3
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Thank you for your reply.
At this point I only want to set up one account.

As I understand if I want to go with this option I need to set up postfix and webmin on my server, right?
how much effort does it require considering I am new to Linux?

thanks
 
Old 04-22-2006, 07:51 PM   #4
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
It's very easy, postfix should be available through your package manager, so that will be an easy install. For the Webmin install, I would suggest not using one of the RPM's, I've had more success installing Webmin on servers using the tar file. Once you unpack that file, just cd to that directory and run ./setup.sh. After you go through the install, just run /etc/webmin/start and you should be able to go to https://localhost:10000/ and login (that address is assuming you have ssl support and you choose port 10000). For configuring Postfix, you should be able to leave most things set to default, I don't remember the specifics, but I know that you would have to change the configuration to allow it to receive mail for your domain. That is simply a matter of typing your domain into a text field.
 
Old 04-22-2006, 08:01 PM   #5
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
I don't bother with Webmin personally, but Postfix should work pretty much out of the box. You may need to do a little tinkering with main.cf, but it's pretty straightforward, and the info at postfix.org is excelent.

You will need to switch your mailer from sendmail, and there is a command to do this which a quick search tells me is "alternatives --config mta"
 
Old 04-22-2006, 08:02 PM   #6
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
thanks,
how can I install it using package manager?

Which of these should I use:
webmin-1.270.tar.gz (Unix tar/gzip format, 9235 kB)
webmin-1.270-1.noarch.rpm (RPM suitable for Redhat, Caldera, SuSE, Mandrake or MSC Linux, 10081 kB)
webmin-1.270-1.src.rpm (Source RPM suitable for Redhat, Caldera, SuSE, Mandrake or MSC Linux, 9239 kB)
webmin-1.270-minimal.tar.gz (Minimal version of Webmin, Unix tar/gzip format, 1278 kB)

I've got Fedora Core 5 running.
I guess it will have to be first one?

thanks
 
Old 04-22-2006, 08:05 PM   #7
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
Does your first question relate to Postfix or Webmin? Postfix should be part of the FC5 distro (bu you may not have installed it)
 
Old 04-22-2006, 08:08 PM   #8
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
That is true, Postfix is with Fedora, but I already tried searching the yum repos for Webmin, it is not available. You should download the webmin-1.270.tar.gz.
 
Old 04-22-2006, 08:14 PM   #9
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
thanks for webmin info.
I am not sure how to configure and get access to postfix though.
First question relates to postfix.

Thanks.
 
Old 04-22-2006, 08:26 PM   #10
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
It's under add/remove software under applications (in gnome), then servers and mail server - optional packages

Last edited by billymayday; 04-22-2006 at 08:30 PM.
 
Old 04-22-2006, 10:54 PM   #11
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
cool, thanks.
I just installed postfix and webmin. All went fine.
What do i do now?
 
Old 04-22-2006, 10:57 PM   #12
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
Assuming that you set the basic parameters required - domain, etc., have you tried your java apps? I don't quite follow the question

try

mail -s "test" mailaddr@my.domain
enter text here and hit Ctrl-D


tail /var/log/maillog

to see if it looks OK then check the inbox for mailaddr@my.domain

Last edited by billymayday; 04-22-2006 at 11:15 PM.
 
Old 04-23-2006, 12:42 AM   #13
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
thanks!
how, where do I set "basic" params?
 
Old 04-23-2006, 01:00 AM   #14
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
Well it sounds like you can do these things from webmin, but on my system I edit main.cf in /etc/postfix.

Have a look at postfix.org and under documentation is a basic configuration page.

I suspect that for a bare minimum, setting the "mydomain" and maybe mailrelayhost if you don't send directly (ie through a relay). Then again, it may work as is.

If postfix is already running, you need to type "postfix reload" after chanfig the config.


Do you want to access emails or just send them btw?

Last edited by billymayday; 04-23-2006 at 01:01 AM.
 
Old 04-23-2006, 03:40 AM   #15
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Hello,

webmin looks complicated to me, there are sooooooo many options there that I just get lost.
Postfix is also not trivial and there is no step by step guide on postfix.org unfortunately.

I have a servlet that sends out email.
I've got something like this for now:
Quote:
Properties props = new Properties();
props.put("mail.smtp.host', "smtp.gmail.com");
props.put("mail.smtp.auth", "true");
props.put("mail.debug", "true");
props.put("mail.smtp.port", "465");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
this works perfectly fine.

I want to be able to receive and send emails.

What would you suggest?

thanks
 
  


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
How to set up broadband in Fedora Core 3? futurist Fedora 10 10-26-2007 03:13 PM
Fedora core 2, how to set up network fifty Linux - Networking 5 09-15-2004 04:00 AM
Hebrew Character set in fedora core 2 hq4ever Fedora 0 07-18-2004 01:36 PM
How to set up a Mail server in Fedora zc923 Linux - Newbie 1 06-05-2004 09:42 AM
Modem [kppp] set-up with Fedora Core 1 OldBob Linux - Newbie 3 05-18-2004 12:02 AM

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

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