 |
|
 |
|
|
 |
unable to send mail from UNIX |
 |
 |
|
|
11-24-05 10:54 PM
Hi,
I own mac OSX. I am learing scripting language using bash. I tried to
send a sample mail to my yahoo and gmail account using mail and mailx,
but I could not.
Here is the command that I used.
mailx -s "Subject" "recei...@yahoo.com" < output.txt
Do I have to configure these programs before I can send emails?
thanks for the help
Papu
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-24-05 10:54 PM
On 24 Nov 2005 12:02:39 -0800, prachar@gmail.com wrote:
> Hi,
> I own mac OSX. I am learing scripting language using bash. I tried to
> send a sample mail to my yahoo and gmail account using mail and mailx,
> but I could not.
>
> Here is the command that I used.
> mailx -s "Subject" "recei...@yahoo.com" < output.txt
>
> Do I have to configure these programs before I can send emails?
Your mail client, mailx will automagically send the mail to your Mail
Transport Agent (MTA). Your MTA needs to be configured to know what
the relayhost is to pass on mail which is not to be delivered to someone
on your current node.
Sorry I do not know MAC.
Possible MTAs qmail, postfix, sendmail, exim
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-24-05 10:54 PM
In article <slrndoc7vm.4oa.BitTwister@wb.home.invalid>,
Bit Twister <BitTwister@mouse-potato.com> wrote:
> On 24 Nov 2005 12:02:39 -0800, prachar@gmail.com wrote:
>
> Your mail client, mailx will automagically send the mail to your Mail
> Transport Agent (MTA). Your MTA needs to be configured to know what
> the relayhost is to pass on mail which is not to be delivered to someone
> on your current node.
>
> Sorry I do not know MAC.
> Possible MTAs qmail, postfix, sendmail, exim
I have MacOS X 10.3 which uses postfix. 10.2 used sendmail as
installed. sendmail required permissions be repaired on /var in order
to work right. postfix just seems to work with the default settings.
It uses configuration info from somewhere other than
/etc/postfix/main.cf (read this file if you want to change anything) and
forwards it to the host in the MX record of the domain it's addressed
to. Most domains won't allow this and only accept email from known
hosts. My guess is your MacOS X box would need a static IP address and
DNS entry to run a mail server. Many of the major ISP's won't allow
that--ymmv.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-24-05 10:54 PM
In article <vilain-F01A08.12585424112005@comcast.dca.giganews.com>,
Michael Vilain <vilain@spamcop.net> wrote:
>In article <slrndoc7vm.4oa.BitTwister@wb.home.invalid>,
> Bit Twister <BitTwister@mouse-potato.com> wrote:
>
[ snip ]
[vbcol=seagreen]
>I have MacOS X 10.3 which uses postfix. 10.2 used sendmail as
>installed. sendmail required permissions be repaired on /var in order
>to work right. postfix just seems to work with the default settings.
>It uses configuration info from somewhere other than
>/etc/postfix/main.cf (read this file if you want to change anything) and
>forwards it to the host in the MX record of the domain it's addressed
>to. Most domains won't allow this and only accept email from known
>hosts. My guess is your MacOS X box would need a static IP address and
>DNS entry to run a mail server. Many of the major ISP's won't allow
>that--ymmv.
>
I don't know about postfix, but sendmail can be configured to ....
I'm not sure about the proper terminology, something along the
lines of "to send outgoing mail via your ISP's mail server" -- the
configuration you want when you connect to the 'Net via an ISP and not
necessarily with a static IP address. Look in /etc/mail/sendmail.cf,
in particular the comments about SMART_HOST (which is what you need to
set) and the comments at the top (how to make the change take effect).
My guess is that postfix has this capability as well.
You may have to make additional changes in order for the return
address on your messages to be something sensible (e.g., you@isp.com).
Some of these can be made at the level of the MUA (mail user agent --
"mailx" in your example).
Someone else can provide details; I just wanted to comment that you
probably do *not* need a static IPA in order to send and receive mail.
My experience is only with Linux, not Mac OS X, but I suspect that
sendmail is (more or less) sendmail ....
--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-25-05 01:49 AM
ok great!
I went to the sendmail.org website looking for instruction, but didnt
find anything helpful. Some of the websites do have instructions on how
to use sendmail but I was totally confused by them.
I have suse 9.1 linux and I would like it if you can give me
instruction on how to configure sendmail on it.
The reason why I began to work on this is my external ip address keeps
changing once in three hours and I would like to know what it is by
sending email to my mail account. I have a script that can get the ip
address. If only I can email it.
The next task would be to figure out how to run a script by sending an
email with some "instuctions"
Papu
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-25-05 01:49 AM
On 24 Nov 2005 16:04:15 -0800, papu wrote:
>
> I have suse 9.1 linux and I would like it if you can give me
> instruction on how to configure sendmail on it.
Most ISP do not want you running any servers. I have my
firewall blocking all inbound attempts so not to violate the
Acceptable Use Policy.
Postfix is real easy to set up on a box which is getting dhcp ip from
my ISP. here are my LAN and WAN settings.
http://groups.google.com/advanced_group_search
slrnd1uebd.ult.BitTwister@wb.home.invalid in the message id box
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-25-05 01:49 AM
In article <1132877055.649452.133090@g49g2000cwa.googlegroups.com>,
papu <prachar@gmail.com> wrote:
>ok great!
First an aside:
Next time please leave in enough context for us to know who you're
replying to. Not everyone reads news from Google's interface, and
some newsreaders don't make it obvious (without some extra trouble)
which post you're replying to. With the extra trouble, it seems
that it's mine ....
(Google's interface doesn't make it obvious how to quote from the
post to which you're replying, but it's possible. I think it's
something about "Show Options" ....)
>
>I went to the sendmail.org website looking for instruction, but didnt
>find anything helpful. Some of the websites do have instructions on how
>to use sendmail but I was totally confused by them.
>
>I have suse 9.1 linux and I would like it if you can give me
>instruction on how to configure sendmail on it.
>
Sendmail is a big complicated program, and I am far from an expert on
it. What I can tell you is what I did on a Fedora Core 4 system. It
may or may not be helpful in your situation.
In /etc/mail/sendmail.mc, I followed the instructions about
uncommenting and changing the line containing "SMART_HOST". I also
added my username to /etc/mail/trusted-users. I then followed the
instructions in /etc/mail/sendmail.mc for regenerating the sendmail
configuration files, and (probably -- hard to remember) restarted
sendmail.
I also made some changes in my mail-reading program's configuration
files, so mail would appear to come from me@my-isp.com rather than
from me-local@local.localdomain. I can tell you what to change for
mutt, but that doesn't help if you use another program. (It was
after I made this change that I discovered that I probably needed to
add something to that trusted-users file, because otherwise sendmail
complains.)
Hope this helps.
>
>The reason why I began to work on this is my external ip address keeps
>changing once in three hours and I would like to know what it is by
>sending email to my mail account. I have a script that can get the ip
>address. If only I can email it.
>
>The next task would be to figure out how to run a script by sending an
>email with some "instuctions"
>
You might want to read up, or ask, about whether there's a potential
security risk in setting up something whereby incoming e-mail triggers
the running of scripts. I vaguely remember hearing something ....
--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-25-05 01:49 AM
In article <slrndoclt2.6jr.BitTwister@wb.home.invalid>,
Bit Twister <BitTwister@mouse-potato.com> wrote:
>On 24 Nov 2005 16:04:15 -0800, papu wrote:
>
>Most ISP do not want you running any servers. I have my
>firewall blocking all inbound attempts so not to violate the
>Acceptable Use Policy.
>
Um, does setting up sendmail so that outgoing mail goes to the ISP's
mail server (which is what I think the OP wants) constitute "running
a server"? I wouldn't have thought so. How is this different from
running any other MTA? Or maybe I don't understand what the OP wants.
>
>Postfix is real easy to set up on a box which is getting dhcp ip from
>my ISP. here are my LAN and WAN settings.
>
>
>http://groups.google.com/advanced_group_search
>slrnd1uebd.ult.BitTwister@wb.home.invalid in the message id box
--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-25-05 01:49 AM
On 25 Nov 2005 00:56:21 GMT, blmblm@myrealbox.com wrote:
> Um, does setting up sendmail so that outgoing mail goes to the ISP's
> mail server (which is what I think the OP wants) constitute "running
> a server"? I wouldn't have thought so.
Generally speaking and ignoring a firewall response, anything responding
to inbound connection could be considered a server from the ISP's point of v
iew.
I just mentioned it so the OP would consider blocking inbound
connections and would not be running an open relay for some
cracker/spammer.
> How is this different from
> running any other MTA? Or maybe I don't understand what the OP wants.
Any MTA will work for what the OP asked for.
I thought recent Suse distributions had postfix as default MTA.
If no postfix docs installed, they can be found here
http://www.postfix.org/documentation.html
Now he might run into trouble sending to other Domains even through
his ISP mail server.
Lots of postmasters have set their filters to verify that the From
addresses is a valid email address. I have to change bittwister@wb.home.inva
lid
to my_addy@hotmail.com via my MTA (postfix).
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: unable to send mail from UNIX |
 |
 |
|
|
11-25-05 07:50 AM
In article <1132862559.690789.307940@o13g2000cwo.googlegroups.com>,
prachar@gmail.com writes:
> Hi,
> I own mac OSX. I am learing scripting language using bash. I tried to
> send a sample mail to my yahoo and gmail account using mail and mailx,
> but I could not.
>
> Here is the command that I used.
> mailx -s "Subject" "recei...@yahoo.com" < output.txt
>
> Do I have to configure these programs before I can send emails?
>
> thanks for the help
>
> Papu
>
You would probably get better results by posting your question on
comp.mail.sendmail.
Basically, however, you want to add lines like the following to your sendmai
l.mc
file:
MASQUERADE_AS(`yourISP.com')
MASQUERADE_DOMAIN(`your-internal.domain.home')
FEATURE(allmasquerade)
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
define(*`confDOMAIN_NAME',`your-internal..domain.home')
define(RELAY_HOST, smtp:mail.yourISP.net)
define(SMART_HOST, smtp:mail.yourISP.net)
define(RELAY_MAILER, TCP)
The above lines ARE NOT guaranteed to work on your system - they do on mine,
with appropriate changes where indicated. The Sendmail FAQ and the on-line
documentation for whatever version of Sendmail you have installed should
explain the above .mc file entries.
HTH,
Bob Melson
--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"One of the greatest delusions in the world is the hope that the evils in th
is world are to be cured by legislation." Thomas Reed
-----
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 03:33 PM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|