Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am sure this will come out as a dumb question but I have to ask it.
I just setup a qmail server, with secure imap and secure pop3 with directions from the lifewithqmail intructions.
I can do a ps and see that qmail is running fine and I used mkmaildir and newu to create the Maildir folders and all.
My question is how do i send and retrieve email . I have read about using fetchmail and procmail to retrieve and send messages. If my email client is outlook do I still need fetchmail? Also i read that I need a fetchmail.rc file in each users folder. Do i create these manually for each user or is there a program that creates all these files (.qmail and fetchmail.rc ) automatically. I think i have read so much that I am now confused with too much info. Help Guys,
i think you could use mutt for reading mail
and fetchmail is a prigram to fetch mail from a popserver on the intenet
if you configure mutt for maildir you will be on the right way
and ithink(not 100% sure) that you have made a imap server for clients on the internet
Thanks guys for all the input. the problem is all my clients are unning windows and they are gonna be using Outlook. O question is do I need fetchmail or procmail as a go between to get the mail from the mail servers and deliver it to Outlook?
I tried to set it Outlook up to connect to the Qmail server and retrieve and send mail and it doesnt work. Am I missing something?
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Kofi.. if you want your windows users to fetch their email, what you need is a POP or IMAP server running on the Qmail Box. Qmail comes with qmail-pop3d which is a pop server that supports Maildirs ( the directory structures under user home directories in the Qmail box that Qmail delivers mail to ) . If I were you, I would download Courier IMAP ( from http://www.inter7.com/courierimap/ )which is a very 'configurable' IMAP server, install and run it on the Qmail box.
This server will
1) listen at the IMAP port ( 443 by default ? ) on the Qmail box
2)authenticate the users using their unix username and password - which they supply from any IMAP compatible mail client like Outlook/Netscape Mail/ Eudora(?) on any platform they're designed to run
3)Read the appropriate user Maildirs once authenticated, fetch the message headers etc and supply them to the asking party ( email client ) according to the IMAP protocol.
For secure IMAP you may need to refer to courier IMAP manuals.
Fetchmail is a utility that you use from the Unix command prompt to fetch mail from pop/imap servers other than itself. Because there's not much reason to connect to an IMAP server running on the same machine when your UNIX mail client ( mutt, patched pine ) can read the Maildir format and show you the messages from your own home directory. Procmail is another command line utility that can process mail according to the filters you set it up with ( like filter spam )
jet.. Outlook does not need to support standard mbox or maildirs since all it needs to do is to talk to the POP/IMAP server running on the Qmail box.
Thanks so much. You clearly explained what I was suspecting. Interesting twist to my mail problems. i went back to test all my installation and decided to do the tests listed in TEST.delver and TEST .receive manuals bundled with qmail. After using the command line telnet 127.0.0.1 25 , I was able to send a mail to myself. Funny thing is though it confirmed that messages was sent and qeued it never showed up in my Maildir folder. Further investigation revealed that all my ,mail was being sent to /var/mail/postfix for some reason. the /var/mail folder had files representing every user on the system but all the messages were sent to postfix.
This mail server is a Redhat Linux 8.0 and i removed sendmail during the qmail setup .. i am wondering now if i should remove postfix too to force it to use qmail? Under qmail, i made sure i set the defaultdelivery to use Maildir. Any thoughts ?
Lastly I setup up qmail-pop3 during the qmail install and later installed the secure pop3. Also installed IMAp and the secure version using SSL Now i have 2 pop3 servers running and 2 IMAP Servers . Should I remove the non-secure ones or leave them ?
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Quote:
Originally posted by kofi Thanks guys,
i went back to test all my installation and decided to do the tests listed in TEST.delver and TEST .receive manuals bundled with qmail. After using the command line telnet 127.0.0.1 25 , I was able to send a mail to myself. Funny thing is though it confirmed that messages was sent and qeued it never showed up in my Maildir folder. Further investigation revealed that all my ,mail was being sent to /var/mail/postfix for some reason. the /var/mail folder had files representing every user on the system but all the messages were sent to postfix.
This mail server is a Redhat Linux 8.0 and i removed sendmail during the qmail setup .. i am wondering now if i should remove postfix too to force it to use qmail? Under qmail, i made sure i set the defaultdelivery to use Maildir. Any thoughts ?
Lastly I setup up qmail-pop3 during the qmail install and later installed the secure pop3. Also installed IMAp and the secure version using SSL Now i have 2 pop3 servers running and 2 IMAP Servers . Should I remove the non-secure ones or leave them ?
Thanks gusy for all the input.
Yes, you should remove postfix too. I think there's something that has gone wrong with the qmail installation, because if it was 'told' to use Maildirs - 2 things here. You can ask it to use Maildir format for your mail delivery/storage. Also, you can make the qmail-lspawn/qmail-local subsystems point to $HOME/Maildir or whatever you decided to call those. Are you sure you did both of these? - it would. The maildirs also need to be created using maildirmake under the home directories. If they dont exist when qmail is looking to deliver mail, you're in trouble.
For the time being, I'd keep all 4, but after I'm done configuring, the only thing I'd keep is the secure IMAP server.
Post the output of
netstat -na | grep -i listen
and also
ps -axfw
Yep I made sure to run maildirmake as each of the users to create the folders so in each user's home directory, there is a Maildir folder that has 3 folders in it namely(new, tmp and cur) .
For the qmail install I have the file defaultdelivery under the /var/qmail/control directory to have the entry "./Maildir" . I assumed this is where qmail-lspawn/qmail-local use .. or do i need to specify it elsewhere? Per your request, here is the output of the following commands :
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
My wife hogged my server for the last couple of days.. she's addicted to Windoze.. today I snatched it back from her and my fave OS is running again. That explains the delay.
so.. as long as the qmail-lspawn has a ./Maildir/ next to in the process listing, qmail recognizes your defauldelivery. That part is fine. Did you end up removing postfix too? I'm not too familiar with postfix or what it can do to you. What happens when you try qmail-inject?
I had to refer to http://www.iana.org/assignments/port-numbers to see what runs on what port of your box. What are you running on port 783? is it the IMAP server? 143 is default, I think.
If you have nmap can you
nmap localhost
as root and post it?
Removed Posfix but the messages still wont send. Funny thing is it will que the message but never would deliver it. Out of frustration, I blew the installation away and i will be doing a fresh install tonite. I was leaning more toward the idea that something corrupted the installation. Could it be the presence of postfix et all? Also I was getting the error messages in my /var/log/messages that:
Starting qmail
qmail-send supervise not running
qmail-smtpd supervise not running
I am gonna install qmail and test to make sure it actually delivers before installing pop3 and imap.
I will keep you posted and thanks for all the help and if you have any suggestions, kindly let me know before i begin, coz if it doesnt work, I will start going door to door and steal turkeys.. hee hee hee
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
I agree, I think you installed too many things at once and now we dont know where to start from.
If I were you, I'd wipe it and start all over again. Starting with Qmail. I somehow got this impression that DJB wrote the tcpserver package because he didn't consider inetd secure enough at that time to run his apps. Which is a nice thing, but the non-standard directory structure that his tools seem to follow pisses me off to no end. I still have to uninstall it that uspci-tools or whatever, cuz I dont absolutely need it and everytime I see it i just hate to see non-LSB directories under my root directory. Unless I'm a power user ( that is, my server delivers at least 30 emails a minute ) , I'd stick with xinetd to run qmail smtpd. The rc script that initializes the other qmail processes are started from my /etc/rc.d/init.d
Qmail installation, as I see it is simple and straight. The rest of the stuff that 'lifewithqmail' throws in there are a bit hairy when it comes to installation. Too many tools and you'd have no clue where to start debugging from. I'd follow the README.*, INSTALL.* and TEST.* files that comes with the souce to get qmail going.
If you're a home user, you might need the .forward, but I'm absolutely certain that not many people who arent ISP admins ( with multiple domains to worry about )would bother to install vpopmail and the like.
If you want, we can do this together. I'm done with qmail already, so once you get there, we'll get the IMAP server going.
Thanks a bunch bro. I was going to do exactly that. That is install from the README and INSTALL files that come with the source. When i am done with the install i will let you know so we go grom there. I appreciate all the input .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.