Re: [newbie] sending mail through my server
On Thursday 05 December 2002 08:30 am, you wrote: I was under the impression that sendmail was very complicated (perhaps this is wrong.) I really don't want the grief of learning an entirely new mail systerm/service if I can help it. Is this going to mess with any of my other mail settings? I finally have everything set up (with the exception of being able to send mail through my server.) Thanks, Jordan Jordan, I just recently (a few months ago) switched from using plain 'ole Kmail to the postfix/fetchmail/procmail route. I still use Kmail as the mailer front end but postfix/fetchmail/procmail does all the real work. It was a bit difficult but not as hard as I thought it would be. Go to the Mandrake website, go to Mandrake user, and follow the links to the tutorial (mail the Linux/Unix way!) I've come to appreciate it much more. Actually I have all of this working with the exception of actually sending mail from a client through my Linux server. My server is now: 1) getting mail from my ISP 2) sending mail to my ISP 3) allowing my (windows outlook express) client to get mail from the Linux server. The only thing missing is being able to send mail from my (windows outlook express) client through my Linux server. I just downloaded and installed Cirus SASL, thinking this would be the simple answer to not messing with everything that is already working. There were a couple of problems, though: I followed the directions at: http://www.mandrakesecure.net/en/docs/postfix-sasl.php I got as far as: ... For simplicity's sake, I recommend using the sasldb method. Your /usr/lib/sasl/smtpd.conf file should then look like this: pwcheck_method:sasldb ...But found I don't have a /usr/lib/sasl - let alone the smtpd.conf file. I did as the make install said (ln -s /usr/local/lib/sasl2 /usr/lib/sasl2) so I have a /usr/lib/sasl2 directory. But, in the sasl2 directory, there is no smtpd.conf file... If you have problems, post them here and the rest of us will try to help as best we can. Thanks - I have been taking advantage of your (plural) vast knowledge and generous help. This is a great mail list! Jordan Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Dynamic IP
I got the download from their home (http://www.squirrelmail.org/) It was painfully easy to install and get operational. It seems like it is very adaptable - so far so good! Jordan - Original Message - From: Mark Annandale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 03, 2002 2:15 PM Subject: Re: [newbie] Dynamic IP Hi, Sorry to mail you off list. I have apache, router and dyndns all working fine. Where could I find a suqirrellmail RPM ? Is it fairly easy to set up ? What is the purpose of using Courier ? Thanks again Mark Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] sending mail through my server
I want to send mail through my email Mandrake server. It is working fine getting mail from my provider and I can get it from my server, but I must always go through my provider to send. I have a notebook and would like to be able to send from anywhere I am at, so I would like to be able to access this service from outside my house. I am up 24/7 on a cable modem, so I will need to prevent anyone else from using my server as a spam source. Any suggestions would be most appreciated. thanks, Jordan Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up amailserveron9.0?
Hi all, OK, now that I think that everything is working (I'l find out for sure tomorrow when I try to access my mail server from outside my ISP) I want to control who sends mail through my smpt server. What is the best way to do this? I guess I have two thougts: 1) change the port number 2) implement passwords for sending mail What is anyone's thoughts on either of these and how hard are they to implement. thanks, Jordan Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] setting an eviromment variable in bash
now you'd think this was easy and I'm sure it is once you know how ;-) I want to do a setenv (which does not exist in bash.) I am using ant which expects JAVA_HOME to be set to wherever your jre is. I tried: set JAVA_HOME=yadayada when I do this, and then do a set | grep HOME, I get: _=JAVA_HOME=yahdyada I'd like to put this into my .bash_profile when I am done. I had to change my shell to tcsh, do a setenv JAVA_HOME yadayada and use ant from tcsh - there must be an easier way! thanks, Jordan Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up amailserveron9.0?
By default Postfix will only relay mail for users on the local network (to avoid spammers taking over your mail server). So without having to do *anything* you are pretty secure. (By relay, I mean accept a mail and forward it on to another mail server) Well, the reason I set this up was so that I could use my server from _anywhere_. It is also possible to configure Postfix to allow connections only from named hosts. This won't work, 'cause I don't know where I'm going to be at. But if you want the most secure method of allowing selective users to access your mail server from outside your local net. the safest way IMO is to only allow SMTP over SASL. This is the best way. I really only want known users accessing my smtp server. There is a good tutorial on sasl at http://www.mandrakesecure.net/en/docs/postfix-sasl.php and a good ssh tutorial http://www.mandrakesecure.net/en/docs/openssh.php Which one is better? I really don't need anything too complicated - I only have 4-5 users. derek Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com -- /*Jordan R. Thompson*/ Mail:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Web:http://www.Jordan.ThompCo.com Tel:(321) 777-8377 Fax:(509) 267-5577 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up amailserveron9.0?
I use pop-before-smtp for this. Mandrake RPMs can be found using rpmfind.net. The home page (popbsmtp.sourceforge.net) doesn't appear to be available right now. I think I have this on my machine already, but I can't remember how to get to it. Anyway, pop-before-smtp allows your server to relay for users who successfully authenticate via POP. I use this successfully to host mail for my family. I remember seeing this option somewhere, but for the life of me I can't find it. I am pretty sure this is the option I want to go with. If you get a chance, could you send me the appropriate settings in the appropriate file? thanks You will need to set the mail client to log in before sending mail for this to work. Is this where you set log on using secure password authentication in Microshlock's Outlook Express? Kind regards, John... Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up a mailserveron9.0?
- Original Message - From: Derek Jennings [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 15, 2002 3:59 AM Subject: Re: [newbie] is this list appropriate for setting up a mailserveron9.0? On Friday 15 Nov 2002 4:43 am, Jordan Thompson wrote: I have another clue: I can now email from the command line on the mandrake machine and have it go out to the isp and back again and receive it on my windows clients, but I cannot connect to my mandrake machine to send mail via smtp. This is the last step that needs to be fixed and I am done! thanks for all of your help thus far... please don't give up on me now! :-P Jordan I have not been following this thread, but there are two simple mistakes people often make with Postfix that may help you. 1/ Your hostname *must* include a domain name. Hence 'jordan.localdomain' is acceptable, but 'jordan' is not. YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES I changed the entry for intet_interfaces from localhoust to 127.0.0.1 and I got rid of the errors and warnings, but changing it to the actual IP address of the box (192.168.1.2) fixed it and now I am in business! Now I am going to reboot to make double sure everything is copacetic :-) thanks to all, Jordan 2/ You *must* define an alias for the user to receive root's error mails. Look at the bottom of the default /etc/postfix/aliases file for guidance. After changing the aliases file run 'newaliases' HTH derek Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up a mailserveron9.0?
On Friday 15 Nov 2002 4:43 am, Jordan Thompson wrote: I have another clue: I can now email from the command line on the mandrake machine and have it go out to the isp and back again and receive it on my windows clients, but I cannot connect to my mandrake machine to send mail via smtp. This is the last step that needs to be fixed and I am done! thanks for all of your help thus far... please don't give up on me now! :-P Jordan I have not been following this thread, but there are two simple mistakes people often make with Postfix that may help you. 1/ Your hostname *must* include a domain name. Hence 'jordan.localdomain' is acceptable, but 'jordan' is not. YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES I changed the entry for intet_interfaces from localhoust to 127.0.0.1 and I got rid of the errors and warnings, but changing it to the actual IP address of the box (192.168.1.2) fixed it and now I am in business! Now I am going to reboot to make double sure everything is copacetic :-) OH well, back to the drawing board - now I can send it, but I can't get it... I am pretty well conviced that there is something bad in my main.cf file. I have included all of the entries here (sans the notes) myorigin = $mydomain inet_interfaces = 192.168.1.2 mydestination = $myhostname, localhost.$mydomain mynetworks_style = class mynetworks = 192.168.1.2/28, 127.0.0.0/8 relayhost = smtp-server.cfl.rr.com alias_maps = hash:/etc/postfix/aliases mail_spool_directory = /var/spool/mail mailbox_command = /usr/bin/procmail -Y -a $DOMAIN smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux) debug_peer_level = 2 debugger_command = PATH=/usr/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id sleep 5 delay_warning_time = 4 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-1.1.11/samples readme_directory = /usr/share/doc/postfix-1.1.11/README_FILES alias_database = hash:/etc/postfix/aliases thanks, Jordan thanks to all, Jordan 2/ You *must* define an alias for the user to receive root's error mails. Look at the bottom of the default /etc/postfix/aliases file for guidance. After changing the aliases file run 'newaliases' HTH derek -- -- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up a mailserveron9.0?
Best way is to edit the /etc/rc.d/rc.local and add fetchmail -d360 (or whatever the polling interval is you desire) done and I tested it by rebooting and checking for fetchmail Mandrake - ISP Mandrake - ISP * Client (windows) - Mandrake Client (windows) - Mandrake * Being that the outbound mailing is rather simple, it would appear as though you might have something mucked up in your outbound configs. Postfix or Sendmail might need to be double checked for configuration. I did have a problem with inet_interface as was reported in the log: Nov 14 22:29:54 dot postfix/smtp[3705]: fatal: config variable inet_interfaces: host not found: dot.thompco.com I changed main.cf from: #inet_interfaces = localhost to: inet_interfaces = 127.0.0.1 and am not getting any errors in /var/log/mail/errors or warnings in /var/log/mail/warnings anymore Those with an asterix work, the others used to work. I would love to know what the names of each one are. Let's try this as an example of how I have my fetchmail working (diagram style) (For inbound) ISPmailserver - LinuxServer (fetchmail) - mbox -- fetchmail set to remove all messages from server (For outbound using SENDMAIL) mbox - via SENDMAIL (or postfix) - ISPMailserver This part is working for me (I am getting email on my Mandrake machine from my ISP and I am getting my email on my windows and local client applications from my Mandrake machine.) Windows clients use the IP of the LinuxServer as their SMTP server, and, of course, the IP of the LinuxServer as their POP3 (or IMAP if you have that running). This is the part I need to know about as this is the part that does not work! Please elaborate on the Linux server applications that talk to the Windows and local (running on the mandrake machine) email clients. What are these processes? You can start FETCHMAILCONF from a terminal or from a RUN command in your WM - it's rather straightforward. I am getting mail OK, so I don't think I want to monkey with fetchmail (if it ain't broke - don't fix it.) Using WebMin (assuming it's installed on your system) is easy. Just open up a browser, type in: localhost:1 and hit enter. If you got it installed, it will pop up a login page. If you don't, well, it won't! waayyy cool! I finally have webmin running. thanks for that! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up a mailserveron9.0?
I have another clue: I can now email from the command line on the mandrake machine and have it go out to the isp and back again and receive it on my windows clients, but I cannot connect to my mandrake machine to send mail via smtp. This is the last step that needs to be fixed and I am done! thanks for all of your help thus far... please don't give up on me now! :-P Jordan Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] is this list appropriate for setting up a mail serveron 9.0?
- Original Message - From: Stephen Kuhn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 13, 2002 5:35 PM Subject: Re: [newbie] is this list appropriate for setting up a mail serveron 9.0? On Thu, 2002-11-14 at 04:53, Jordan R. Thompson wrote: Hi all, I want to be able to get/send mail through my ISP's pop/smtp servers and also be able to get/send mail through my machine. I have set everything up and actually had everything working. I rebooted to make sure it was, and now I cannot send mail through my machine (it gets mail from my ISP and I can get mail from my server I don't seem to be able to send mail to it and it does not seem to mail to my ISP.) thanks and sorry if this is not the right forum. Jordan Jordan R. Thompson Email:[EMAIL PROTECTED] Web:http://www.Jordan.ThompCo.com Tel:(321) 777-8377 Fax:(509) 267-5577 Are you using FETCHMAIL, or do you have another configuration? Postfix? QMail? Sendmail? Fetchmail. I assume this is only getting the mail from my ISP - this is working. [jordan@dot jordan]$ ps -ef | grep fetchmail root 2024 1 0 Nov12 ?00:00:04 fetchmail -d 180 -f /etc/fetchma jordan 17027 16990 0 22:38 pts/500:00:00 grep fetchmail [jordan@dot jordan]$ I am using postfix also: [jordan@dot jordan]$ ps -ef | grep post root 1715 1 0 Nov12 ?00:00:01 /usr/lib/postfix/master postfix 1730 1715 0 Nov12 ?00:00:07 nqmgr -l -n qmgr -t fifo -u -c postgres 2001 1 0 Nov12 ?00:00:00 /usr/bin/postmaster postgres 2003 2001 0 Nov12 ?00:00:00 postgres: stats buffer process postgres 2004 2003 0 Nov12 ?00:00:00 postgres: stats collector proces postfix 16683 1715 0 21:47 ?00:00:00 pickup -l -t fifo -u -c postfix 16979 1715 0 22:36 ?00:00:00 trivial-rewrite -n rewrite -t un jordan 17036 16990 0 22:39 pts/500:00:00 grep post I've got some errors in my /var/log/mail/errors file: [root@dot jordan]# tail /var/log/mail/errors Nov 13 22:14:37 dot postfix/smtp[16861]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:14:37 dot postfix/smtp[16864]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:14:37 dot postfix/smtp[16865]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:14:37 dot postfix/smtp[16866]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:14:37 dot postfix/smtp[16867]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:31:18 dot postfix/smtp[16949]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:31:18 dot postfix/smtp[16950]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:31:18 dot postfix/smtp[16951]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:31:18 dot postfix/smtp[16952]: fatal: config variable inet_interfaces: host not found: localhost Nov 13 22:31:18 dot postfix/smtp[16953]: fatal: config variable inet_interfaces: host not found: localhost and some warnings in my /var/log/mail/warnings file: [root@dot jordan]# tail /var/log/mail/warnings Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: premature end-of-input from pr ivate/smtp socket while reading input attribute name Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: private/smtp socket: malformed response Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: premature end-of-input from pr ivate/smtp socket while reading input attribute name Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: private/smtp socket: malformed response Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: premature end-of-input from pr ivate/smtp socket while reading input attribute name Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: private/smtp socket: malformed response Nov 13 22:31:19 dot postfix/nqmgr[1730]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description pinging localhost works fine: [root@dot jordan]# ping localhost PING localhost.localdomain (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data. 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.056 ms 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.053 ms thanks in advance, Jordan -- Thu Nov 14 09:30:00 EST 2002 |____ | | / \ /| |'-. | |