I want to be able to use the Linux "mail" command to send machine-generated mail to external addresses -- which of course means specifying all the relevant information about my Internet mail account. Is "postfix" the program in charge of such things? Is there a reasonable way to do this without having to spend many hours becoming an expert on postfix? Paul Abrahams
* Paul W. Abrahams <abrahams@acm.org> [09-23-04 13:12]:
I want to be able to use the Linux "mail" command to send machine-generated mail to external addresses -- which of course means specifying all the relevant information about my Internet mail account. Is "postfix" the program in charge of such things? Is there a reasonable way to do this without having to spend many hours becoming an expert on postfix?
yast2 -> Editor for /etc/sysconfig Files -> search for 'postfix' -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Thursday 23 September 2004 2:32 pm, Patrick Shanahan wrote:
* Paul W. Abrahams <abrahams@acm.org> [09-23-04 13:12]:
I want to be able to use the Linux "mail" command to send machine-generated mail to external addresses -- which of course means specifying all the relevant information about my Internet mail account. Is "postfix" the program in charge of such things? Is there a reasonable way to do this without having to spend many hours becoming an expert on postfix?
yast2 -> Editor for /etc/sysconfig Files -> search for 'postfix'
I did that, but there's a long list of variables there with nonobvious meanings. I can't tell which ones I need to set, let alone what values to set them to. Or if setting those variables, rather than modifying some config file, is sufficient. Paul
* Paul W. Abrahams <abrahams@acm.org> [09-23-04 13:44]:
On Thursday 23 September 2004 2:32 pm, Patrick Shanahan wrote:
* Paul W. Abrahams <abrahams@acm.org> [09-23-04 13:12]:
I want to be able to use the Linux "mail" command to send machine-generated mail to external addresses -- which of course means specifying all the relevant information about my Internet mail account. Is "postfix" the program in charge of such things? Is there a reasonable way to do this without having to spend many hours becoming an expert on postfix?
yast2 -> Editor for /etc/sysconfig Files -> search for 'postfix'
I did that, but there's a long list of variables there with nonobvious meanings. I can't tell which ones I need to set, let alone what values to set them to. Or if setting those variables, rather than modifying some config file, is sufficient.
Define 'machine-generated mail' from your first post. Reason: if you are referreing to logs and warnings that normally are for root, an alias, root: <external-address>, entry in /etc/aliases will suffice. ps: the 'Linux' *mail* command is actually 'nail' /usr/bin/mail -> nail -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Thursday 23 September 2004 3:42 pm, Patrick Shanahan wrote:
Define 'machine-generated mail' from your first post. Reason: if you are referreing to logs and warnings that normally are for root, an alias, root: <external-address>, entry in /etc/aliases will suffice.
I have a log file that I would like to send periodically to my Internet address, "abrahams@acm.org". Under Kmail (or any other externally-directed mailer), of course, I can specify the smtp server, username, and password for outgoing mail. But I can't use Kmail because I'm generating the mail internally and automatically. Aliasing won't solve the problem because postfix doesn't know how to send mail to abrahams@acm.org. I have to tell it somehow that any nonlocal address should be sent to smtp.comcast.net. Paul
* Paul W. Abrahams <abrahams@acm.org> [09-23-04 15:14]:
I have a log file that I would like to send periodically to my Internet address, "abrahams@acm.org". Under Kmail (or any other externally-directed mailer), of course, I can specify the smtp server, username, and password for outgoing mail. But I can't use Kmail because I'm generating the mail internally and automatically. Aliasing won't solve the problem because postfix doesn't know how to send mail to abrahams@acm.org. I have to tell it somehow that any nonlocal address should be sent to smtp.comcast.net.
man nail your problems are solved :^) -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On 23.09.04,14:09, Paul W. Abrahams wrote:
I want to be able to use the Linux "mail" command to send machine-generated mail to external addresses -- which of course means specifying all the relevant information about my Internet mail account. Is "postfix" the program in charge of such things? Is there a reasonable way to do this without having to spend many hours becoming an expert on postfix?
Paul Abrahams
Go to yast, choose Network Services and Mail Transfer Agent. There fill in the outgoing mail server. This will set up Postfix for you. - Jostein -- Jostein Berntsen <jbernts@broadpark.no>
On Thursday 23 September 2004 4:57 pm, Jostein Berntsen wrote:
Go to yast, choose Network Services and Mail Transfer Agent. There fill in the outgoing mail server. This will set up Postfix for you.
That was the critical part of the solution but not quite the only part. I kept having my outgoing messages rejected with the following error: The Postfix program <abrahams@acm.org>: host smtp.comcast.net[63.240.76.27] said: 550 [PERMFAIL] acm.org requires valid sender domain (in reply to RCPT TO command) However, by providing a return address to "mail" with the -r option I was able to get my mail out. Thanks. Paul
The Thursday 2004-09-23 at 18:54 -0400, Paul W. Abrahams wrote:
However, by providing a return address to "mail" with the -r option I was able to get my mail out. Thanks.
Of course. By the way, I just wrote quite a lengthy explanation about setting up postfix and kmail:
Subject: [SLE] Postfix question
-- Cheers, Carlos Robinson
On Thursday 23 September 2004 8:49 pm, Carlos E. R. wrote:
The Thursday 2004-09-23 at 18:54 -0400, Paul W. Abrahams wrote:
However, by providing a return address to "mail" with the -r option I was
able
to get my mail out. Thanks.
Of course.
By the way, I just wrote quite a lengthy explanation about setting up postfix and kmail:
Subject: [SLE] Postfix question
It ultimately turned out to be easier to do what was needed purely within ~/.mailrc, since even with using postfix I had to set a bunch of parameters there. But maybe I could have done some of them in postfix if I had known more about it. My ~/.mailrc looks like this: set from=abrahams@acm.org set smtp=smtp.comcast.net Paul
The Thursday 2004-09-23 at 22:26 -0400, Paul W. Abrahams wrote:
It ultimately turned out to be easier to do what was needed purely within ~/.mailrc, since even with using postfix I had to set a bunch of parameters there. But maybe I could have done some of them in postfix if I had known more about it. My ~/.mailrc looks like this:
set from=abrahams@acm.org set smtp=smtp.comcast.net
You never had a problem with postfix, but with the mail program itself that did not set a correct return address. This is a side effect of your machine not having a real internet name. -- Cheers, Carlos Robinson
participants (4)
-
Carlos E. R.
-
Jostein Berntsen
-
Patrick Shanahan
-
Paul W. Abrahams