LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-17-2009, 08:38 AM   #1
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Rep: Reputation: 40
sendmail client


Hello,

I'm trying to configure sendmail to act as a client emailer
but i'm facing a problem with the submit.mc configuration

namely :

Feature('msp','127.0.0.1')

well the problem is that i want the mailer to forward the email to
it's appropriate smtp host on the net and of course NOT to the localhost

however , i'm not gonna bother with relaying thru a intermediate agent or setup an extra agent on my host to do that job

what i'm looking for is a directive that instructs this idle pile of antiquated junk called sendmail to do something useful after all
like figuring out from the mx record what ip it's supposed to connect to in order to deliver the email

sorry , If this sounds like a rant but i'm simply fed up with this Bs
i mean i can send an email manually from telnet , why is it so hard to tell this sendmail to do the same job?


regards

Last edited by entz; 04-17-2009 at 08:52 AM.
 
Old 04-17-2009, 09:56 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
A poor workman blames his tools.

If you don't like sendmail you should probably explore postfix. However, to do that you'll actually have to learn how it works just as you would have had to learn how sendmail works to do it right. Many people prefer postfix and it sounds like it would be a good fit for you.
 
Old 04-17-2009, 10:58 AM   #3
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by jlightner View Post
A poor workman blames his tools.
Well i guess that the mentality that you've presented could
probably explain why the linux community has so far managed to conquer
no more than 10% of the PC market.

that is the unwillingess or inability to realize that something is fundamentally wrong with the open source community in general.
or probably it's the fact that many developers have been so self centered on what they do to the extent that they have become utter bigots who consider every form of criticism against linux or OS software as malicious heresy. (a quick reference to richard stallman)

of course i'm NOT trying to say that all OS software is wrong .

for instace mysql , postgresql , apache ..etc are examples of great pieces of work.

however , i'm here referring to sendmail and to be honest , it's one
of the crappiest piece of software ever written , i'd even go further with blasphemy and say that MS exchange server would do better.

and this statement comes from somebody (myself) who hates and despises microsuck to the core.

when we mention quality software , how are we supposed to scale that and against what?

well the answer for me is simple , it's the documentation that basically says everything about it. (compare to other documentations of other programs.

indeed ,the official sendmail doc is as useless as a raincoat in the desert.
it's so crappy that it doesn't even have a content index ...laughable isn't it?

So you think that i should switch to postfix ?
what's so ironic I knew about postfix long time ago , or in other words you didn't add anything that i don't already know

Uh yeah , thanks for adding nothing ;p
 
Old 04-17-2009, 12:42 PM   #4
bobmac010
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 29

Rep: Reputation: 15
So, what is your problem. entz? It can take time to learn new programs/software...
So, you happen to know Micro$oft, big deal... It takes a man to know sendmail...
It's really easy to point&click in MSExchange, and the management shell - Ugh!!!

Sendmail is NOT that hard.
Want a "basic" sendmail server?
sendmail.mc should look like this:

divert(-1)

divert(0)dnl
VERSIONID(`$Id: generic-linux.mc, Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl


If you want to add a smarthost, insert this:
define(`SMART_HOST', `your_smart_host_name_here')

Rebuild your .cf files and install them, (I'll tell you how to do that if you get off your hi-horse and be a little more appreciative of the people that are trying to help you...).

If not, you can insert another line somewhere else-

Bob

Last edited by bobmac010; 04-17-2009 at 12:43 PM. Reason: punctuation
 
Old 04-17-2009, 12:56 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by entz View Post
Well i guess that the mentality that you've presented could
probably explain why the linux community has so far managed to conquer
no more than 10% of the PC market.

that is the unwillingess or inability to realize that something is fundamentally wrong with the open source community in general.
or probably it's the fact that many developers have been so self centered on what they do to the extent that they have become utter bigots who consider every form of criticism against linux or OS software as malicious heresy. (a quick reference to richard stallman)

of course i'm NOT trying to say that all OS software is wrong .

for instace mysql , postgresql , apache ..etc are examples of great pieces of work.

however , i'm here referring to sendmail and to be honest , it's one
of the crappiest piece of software ever written , i'd even go further with blasphemy and say that MS exchange server would do better.

and this statement comes from somebody (myself) who hates and despises microsuck to the core.

when we mention quality software , how are we supposed to scale that and against what?

well the answer for me is simple , it's the documentation that basically says everything about it. (compare to other documentations of other programs.

indeed ,the official sendmail doc is as useless as a raincoat in the desert.
it's so crappy that it doesn't even have a content index ...laughable isn't it?

So you think that i should switch to postfix ?
what's so ironic I knew about postfix long time ago , or in other words you didn't add anything that i don't already know

Uh yeah , thanks for adding nothing ;p
That doesn't make sense...

Does a manual transmission suck because you can't drive stick? No.

Just because you don't know how to use it dosen't mean it sucks...It just means that you don't know how to use it.

-C
 
Old 04-18-2009, 05:58 AM   #6
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by bobmac010 View Post
Sendmail is NOT that hard.
Want a "basic" sendmail server?
sendmail.mc should look like this:

divert(-1)

divert(0)dnl
VERSIONID(`$Id: generic-linux.mc, Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl


If you want to add a smarthost, insert this:
define(`SMART_HOST', `your_smart_host_name_here')

Rebuild your .cf files and install them, (I'll tell you how to do that if you get off your hi-horse and be a little more appreciative of the people that are trying to help you...).
Hello Bob,

now that's something of a constructive response
and if you believe it or not I do appreciate what you posted , which btw can't be said regarding the other 2 posters..

OK , now the general issue with sendmail is the docs are NOT very helpful(as i strongly suggested earlier) , fact is that a lot of guess work has been involved in order to reach the point where i'm now.

at the moment , i do have a sendmail program that is able to listen to port 25 .
i did this by running

make generic-linux.cf
cp generic-linux.cf /etc/mail/sendmail.cf

and i did start the server by issuing

sendmail -bt

and that was the only command that would make the server listen to port 25.

one of the important things that i want to do right now is restrict sendmail to listen to 127.0.0.1 instead to the whole 0.0.0.0 range which is most likely a security problem

so how can i do that? what is it that should change in the config file or mc file...etc

and thanks

Last edited by entz; 04-18-2009 at 06:10 AM. Reason: elaborating
 
Old 04-18-2009, 08:53 AM   #7
bobmac010
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 29

Rep: Reputation: 15
First off, entz, you owe an apology to the individuals that you "flamed". When you ask for help on something, don't "blast" the community that you are asking to help you.
It generally does not get you what you want.

jlightner was merely trying to offer assistance to you, and I stand behind jlightner's statements.

Say you're sorry, be "nice" if you can, and we can continue.
Otherwise, I think you need to find another board to post your question/demand, if you haven't already.

Bob
--------------------
Poor planning on your part does not constitute an emergency on mine.
 
Old 04-18-2009, 11:45 AM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by bobmac010 View Post
First off, entz, you owe an apology to the individuals that you "flamed". When you ask for help on something, don't "blast" the community that you are asking to help you.
It generally does not get you what you want.

jlightner was merely trying to offer assistance to you, and I stand behind jlightner's statements.

Say you're sorry, be "nice" if you can, and we can continue.
Otherwise, I think you need to find another board to post your question/demand, if you haven't already.

Bob
--------------------
Poor planning on your part does not constitute an emergency on mine.
QTF
 
Old 04-20-2009, 08:21 AM   #9
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by bobmac010 View Post
Say you're sorry, be "nice" if you can, and we can continue.
Otherwise, I think you need to find another board to post your question/demand, if you haven't already.
...or if i haven't already found the answer myself by now (3 days later)

anyways , i wanna say that there is a vast difference between
blasting or flaming someone on one hand and criticizing on the other.

basically what i mean , is that speaking out disagreements or attacking
silly prejudices like "poor worker blames his tools".
can't be held as an offense and for those who do , i sincerely feel sorry.

I'm afraid that is the only thing I've to say at the moment.



Peace , especially to all community lovers.
 
  


Reply



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
Using sendmail as a client with AUTH VAS Linux - Software 10 04-24-2006 06:11 PM
sendmail sm-client jon3k Linux - Software 0 11-15-2004 01:42 PM
sendmail client vacilus Linux - Software 2 10-08-2004 08:02 AM
SENDMAIL - sm-client fails digimike Linux - Newbie 4 08-09-2003 02:30 PM
Sendmail and sm-client Micro Linux - General 1 01-12-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:58 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
Open Source Consulting | Domain Registration