LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-08-2004, 06:38 AM   #16
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31

hi SiegeX,
quick question. will relaying a local mail server's outgoing mail through the isp's smtp server result in the mail being stamped as originating from the isp's smtp server? sorry for such a simple question, but i have absolutely no experience with mail servers. never bothered with them because of the port 25 issues you already addressed.
 
Old 09-08-2004, 12:10 PM   #17
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 38
Its a very good question. You see, when an email gets relayed through any SMTP server, that server will tack on a header that basically says "this email was here". If you have ever tracked a UPS package, its the same exact idea. So when you are using SMART_HOST, the first thing that happens is that your own SMTP server puts its header on, then it connects to your ISP's SMTP server and that server will tack a header on top of yours. From there the ISP's server will route that email to its next destination (not always final). The reason why this will help in preventing your emails from being dropped is that the "next destination" is now being handed email from a static, non-residential IP. Hope I cleared up your question.
 
Old 09-08-2004, 12:35 PM   #18
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
the reason i asked is the user account of the isp is not owned by myself. i don't want to use it as a relay if any and all emails i send through it get stamped with that e-mail account to reply to. had this problem before when using the isp smtp server "straight" with an e-mail client.
 
Old 09-08-2004, 12:38 PM   #19
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
Excellent HOWTO. I may even setup sendmail after reading it. I have a home webserver and I want to be able to feedback email through a web page form. Thanks.

On the Linux Answers submission of this HOWTO, I would like to add that maybe LQ should change the link name from Linux Tutorials to Linux Answers. Perhaps, just add the word Answers after tutorial: Linux Tutorials/Answers. Just a thought!
 
Old 09-08-2004, 03:15 PM   #20
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 38
Quote:
Originally posted by kodon
the reason i asked is the user account of the isp is not owned by myself. i don't want to use it as a relay if any and all emails i send through it get stamped with that e-mail account to reply to. had this problem before when using the isp smtp server "straight" with an e-mail client.
All the ISP SMTP servers that I have delt with will let you specify the 'MAIL FROM' to be from any host@domain you wish as long as either 1) The IP you send it from belongs to that ISP or 2) You authenticate using client-side SMTP AUTH. That is not to say that there arnt SMTP servers out there that will reject relaying all mail that doesnt have their domain name as the MAIL FROM address, ive just never encountered one yet.


And thanks for the compliment on the howto, let us know if you have any problems. And I think your suggestion about the "Linux Tutorials" is a good one, I wasnt aware until now that Tutorials links to Linux Answers. Might also be a wise idea to give "Linux Answers/Tutorials" its own Forum but have the link simply redirect to the page its on.
 
Old 09-08-2004, 03:37 PM   #21
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
just got my first piece of mail to go through with my local machine's hostname.domainname as "from"!!! really easy to follow your instructions...took me a while to determine that i MUST change darkstar.localhost to an actual FQDN. (kept getting unqualified host name errors)

too bad...i kinda liked the darkstar login
but i like things working more
 
Old 09-09-2004, 07:03 PM   #22
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
Hey SiegeX,

Problem, followed your first post, and when I tried to pick up from the server side SMTP.
I edited everything created the certs and when I got to [saslauthd -a shadow]
I realized that you did something different in the begining of this post, and that is you compiled sendmail with arguements that I believe created some directories and options that I did not get when I used your first post on this subject. Is there a way to include these into my current configuration or should I rip out sendmail and sasl and start over?

Thanks,
Wolfy
 
Old 09-10-2004, 03:14 AM   #23
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 38
In my first post I recommened downloading prebuilt sendmail and sasl slackpacks from linuxpackages.net. In this howto I go through how to do it yourself, but when everythign is said and done the configuration options should be the same, there should be no reason why you couldnt follow everything but not including the Install&Config section if you installed the prebuilt packages.
 
Old 09-10-2004, 08:33 AM   #24
skubee
LQ Newbie
 
Registered: Sep 2003
Location: Portland, OR
Distribution: slackware
Posts: 22

Rep: Reputation: 15
saslauthd error

im getting this error when i saslauthd -a shadow

Quote:
saslauthd[1078] :main : could not chdir to: /var/state/saslauthd
saslauthd[1078] :main : chdir: No such file or directory
saslauthd[1078] :main : Check to make sure the directory exists and is
saslauthd[1078] :main : writeable by the user this process runs as.
everything runs fine. i can send and recieve mail at this point. im wondering what step i missed.

hmm... think i figured it out. error in compiling sasl.

trying to recompile sasl. uninstall, redo compile. make && make install, yet theres still nothing in /var/state/saslauthd. somethings making the configure parameters not register or something.

Last edited by skubee; 09-10-2004 at 09:24 AM.
 
Old 09-10-2004, 09:55 AM   #25
skubee
LQ Newbie
 
Registered: Sep 2003
Location: Portland, OR
Distribution: slackware
Posts: 22

Rep: Reputation: 15
ok figured it out.

Quote:
./configure --prefix=/usr --enable-anon --enable-plain --enable-login --disable-krb4 --with-mysql \
--with-saslauthd=/var/state/saslauthd --with-openssl --with-plugindir=/usr/local/lib/sasl2 \
--enable-cram --enable-digest --enable-otp
--with-saslauthd=/var/state/saslauthd needs to be /var/state

thnx for the very informative tute.

if only all sendmail howtos were just so



s/n i also had to ln -s /usr/lib/sasl2 /usr/local/lib/sasl2
i think --with-plugindir=/usr/local/lib/sasl2 needed to be --with-plugindir=/usr/local/lib


Last edited by skubee; 09-10-2004 at 05:57 PM.
 
Old 09-10-2004, 10:56 AM   #26
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
Yep, I second that. Up until now, sendmail has been a scary Linux app for me.

Quote:
Originally posted by skubee

thnx for the very informative tute.

if only all sendmail howtos were just so

[/B]
 
Old 09-11-2004, 04:08 AM   #27
skubee
LQ Newbie
 
Registered: Sep 2003
Location: Portland, OR
Distribution: slackware
Posts: 22

Rep: Reputation: 15
bump

*bump*

seige, is the compile parameters for cyrus-sasl2 in your tutorial correct and my machine just a bit picky?
 
Old 09-14-2004, 04:42 PM   #28
elusivemel
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
It worked beautifully. Thanks.
 
Old 09-14-2004, 06:04 PM   #29
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 38
No problem, I appreciate all the comments (both positive and negative) but fortunately they seem to all be positive . I just got done adding MIMEDefang + Spam Assassin + ClamAV to sendmail and when I get the time Ill write up a howto for this as well. What is also neat is that I have fetchmail grabbing from three of my POP accounts and sending them through my sendmail server so they all get washed for spam and viruses and I only need to have my client grab from my local POP3 server to recieve the mail from all three.
 
Old 09-14-2004, 07:00 PM   #30
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
Hello again SiegeX,
I have a question.
I recently did a re-install and I did not do anything to sendmail prior to starting your How-to.
Everything went fine with no errors, but you make a note that after installing the new sendmail that we should make changes to the access,local-host-names,and aliases files.
I did not modify these or did I make copies since I did not attempt to configure them prior to following your How-to.
These files are for the most part empty, Could you tell me what I should put in these files?
I kinda know, but I am unsure of the syntax needed to make them work properly.
[access] I assume is who gets access i.e. users
[local-host-names] I believe to be my FQDN
and [aliases] I believe is what other names that users would receive mail from.
I'am going to proceed with your How-to in the hopes that it will only be as simple as adding some information later if needed.

Thanks,
Wolfy
 
  


Reply

Tags
att, auth, dsl, howto, sendmail, smtp, ssl, yahoo


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
DISCUSSION: Sendmail SMTP AUTH Howto SiegeX LinuxAnswers Discussion 10 09-17-2007 07:49 PM
sendmail 8.13.4-2 smtp auth nightmare kz26 Linux - Security 1 10-30-2005 01:57 PM
Sendmail SMART_HOST + SMTP AUTH Howto SiegeX Slackware 15 09-06-2004 01:42 AM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 01:17 PM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 10:40 AM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration