LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-07-2010, 03:28 PM   #16
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366

root@darkstar.mach6p is an OK address for mail sent only on / across your private LAN, the network you own.

It is not a valid address for the internet. Your only world-reachable address is e???????4@fibertel.com.ar. The fact that that mail is being delivered to darkstar.mach6p is irrelevant. Your ISP asks your mail agent for your account / ISP login and password, and delivers the mail. It does not care what name you have assigned to your local machine.

And you should edit out your email address from any posts to LQ, or you may be deluged with spam (net bots will find it and add you to lists )
 
1 members found this post helpful.
Old 07-07-2010, 03:48 PM   #17
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,082

Original Poster
Rep: Reputation: 45
Thanks for the warning about bots. And about the difference between privite LAN and Internet, that's another piece of the puzzle I can fit in. Maybe someday I will be able to join all pieces together. Regards.
 
Old 07-07-2010, 06:12 PM   #18
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 264

Rep: Reputation: 27
Quote:
Originally Posted by stf92 View Post
Perhaps, I must useradd a user exxxxxxx4 and replace the contents of /etc/HOSTNAME, whose current contents is 'darkstar.mach6p', by 'fibertel.com.ar'.
If you make HOSTNAME a real domain then every time a program on your machine tries to access a target on that domain your machine will receive the request. Instead use the masquerade feature of sendmail. Edit /etc/mail/sendmail.cf. Find the 'who I masquerade as' line and add the domain to the subsequent line, for example:

DMbanana.com

Note that this will make all messages to banana.com go to your machine.

The next step of spam filtering is SPF: recipient domains query a message's alleged sending domain and marks as spam or rejects messages that didn't originate with it. I happen to administer a domain on an ISP that doesn't so I can use that domain. Ideally your host relays messages from client domains. Don't count on it.

Quote:
Originally Posted by stf92 View Post
Then, login as exxxxx. Or use the -r argument in mailx.
Set the 'from' variable in .mailrc instead.
 
Old 07-07-2010, 08:27 PM   #19
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,082

Original Poster
Rep: Reputation: 45
I will study your post and try some of its tips. In the meanwhile, I tell you, RandomTroll, I think there are two possible causes of conflict here:
One is yahoo.com, the MTA I am sending my test messages through (I send them to my mail box in yahoo) could not like my ISP. I have some experience with this, and it seems it has a bad reputation. The other is authentication, in this case SMTP authentication. Interrogating this ISP, by means of another program, for his SMTP authentication method(s), it identifies the method as 'plain' (only method it identified). I tried mailx -S smtp-auth=... several keywords, from among those given in mailx manual for SMTP.

Besides, I get from them:
Code:
(reason: 553 5.7.1 [BL21] Connections will not be accepted from xxx.xxx.xx.xx, because the ip is in Spamhaus's list; see http://postmaster.yahoo.com/550-bl23.html)
which strengthens my suspicion about the ISP. And trying hotmail.com,
Code:
   ----- Transcript of session follows -----
... while talking to mx1.hotmail.com.:
>>> MAIL From:<exxxxxxxx4@fibertel.com.ar> SIZE=676 AUTH=<>
<<< 550 DY-001 Mail rejected by Windows Live Hotmail for policy reasons. 
We generally do not accept email from dynamic IP's as they are not
typically used to deliver unauthenticated SMTP e-mail to an Internet
mail server. http://www.spamhaus.org maintains lists of dynamic and
residential IP addresses. If you are not an email/network admin please
contact your E-mail/Internet Service Provider for help. Email/network
admins, please visit http://postmaster.live.com for email delivery
information and support
554 5.0.0 Service unavailable
which clearly states the message lacks authentication. Regards and thanks for your patience,

Enrique.

Last edited by stf92; 07-07-2010 at 09:06 PM.
 
Old 07-08-2010, 02:37 AM   #20
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 264

Rep: Reputation: 27
I have the same problem with rejection of dynamic IPs. You can address that by paying for a static IP. You will still have the same problem with your ISP being identified as a spammer. You can request removal. A domain I administered got listed mistakenly (a spamster had spoofed our address) and I got it removed from somebody's spammer list. Or you can move to another ISP.

What do you really want to do? I archive, encrypt, and compress my outgoing mail and send it to a domain on which I have a shell account where procmail reverses the process and sends the mail. I use mailx to read mail only.

If you haven't figured it out yet, mailx doesn't fetch mail from other servers. You need to use something else, such as fetchmail, for that.
 
Old 07-08-2010, 12:17 PM   #21
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,082

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by RandomTroll View Post
I have the same problem with rejection of dynamic IPs. You can address that by paying for a static IP. You will still have the same problem with your ISP being identified as a spammer. You can request removal.
I know this: I did use, several years ago, and subscripted to the same ISP I am now, and to the same service, Kmail and Window$ Outlook Express successfully to send as well as to receive mail. And I remember well I wrote and receive mail from a friend who used Hotmail.com. What Kmail did, I have to be able to do on the console.

Quote:
What do you really want to do? I archive, encrypt, and compress my outgoing mail and send it to a domain on which I have a shell account where procmail reverses the process and sends the mail. I use mailx to read mail only.
I want to do what a normal end user, call it housewife, architect, etc would do: use the computer to manage my dayly correspondence BUT, on a text mode console. Even elm I woundn't like it because it treats the screen in a GUIish way.
Quote:
If you haven't figured it out yet, mailx doesn't fetch mail from other servers. You need to use something else, such as fetchmail, for that.
I, as the novice I am, would like you to explain this in greater detail. mailx man says: "mailx - send and receive Internet mail". Of course, the server can be my machine (not my case). But the notifications sent by my ISP server were shown to me by mailx.

It should perhaps be stated kmail (again kmail, but it's just an example) isn't, since the last slackware instalation on this machine, able to send mail to itself (or to any other destination). I will do two things: reinstall Slackware (last time I installed the packages as I needed them) and try kmail. If kmail works fine, then I'll be able to dedicate myself to mailx, fetchmail and the like, but having isolated the problem. If kmail still has problems, I'll install window$ on another machine and try Outlook Express. Having so diagnosed the outer world, and assuming the diagnostics indicate there are no problems outside the machine, I shall be in a position to further investigate, this time, on my side of the cable.

You say you administer a domain on an ISP. I'm glad to be writing, not only to a slacker, but to someone with that kind of knowledge. Regards.

Last edited by stf92; 07-08-2010 at 12:33 PM.
 
Old 07-08-2010, 08:33 PM   #22
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 264

Rep: Reputation: 27
Quote:
Originally Posted by stf92 View Post
Kmail and Window$ Outlook Express successfully to send as well as to receive mail.
Those programs access remote SMTP & POP servers; mailx doesn't: it uses only the local SMTP server and doesn't use POP at all: it reads only the mail in the local mail spool. You can use a remote SMTP server by configuring sendmail - but that requires a remote SMTP server that will relay your mail. Ideally that would be fibertel, but you have to ask them. mailx is an 'old' program, from the days when users were accounts on large machines that were servers and every server relayed all mail. Spam followed the commercialization of the 'Net; closing one's SMTP server to other relayers followed.

Quote:
Originally Posted by stf92 View Post
mailx man says: "mailx - send and receive Internet mail".
That's a mistake. It doesn't receive mail. It parses and displays the contents of a mail spool file, which some other program has to fetch. On a machine that is its own SMTP server the SMTP server fetches the mail, but on a machine that isn't some other program has to fetch the mail. In the old days everyone used mailx on a machine that was its own SMTP server. Modern mail clients use POP to pick up mail from one's SMTP server. This is so common, and the past so distant (for most users), that they don't understand that it can be any other way.

Quote:
Originally Posted by stf92 View Post
But the notifications sent by my ISP server were shown to me by mailx.
Your SMTP server sent the messages so it received the notifications from your ISP server and put them in your mail spool file. The ISP server didn't send the messages to exxxx@fibertel but to your SMTP server.

Quote:
Originally Posted by stf92 View Post
reinstall Slackware
Probably a waste of time.
 
1 members found this post helpful.
Old 07-08-2010, 09:44 PM   #23
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,082

Original Poster
Rep: Reputation: 45
Well then: the mailx/sendmail thing postponed until I know a bit --a lot, I'd say, more on *nix/linux and its GNU applications. This thread I'll keep if only to remind me of how complex can things reveal itself to be when one thought it was going to be easy. Besides, it contains useful information. This having been said, I express my kind regards to you. Farewell.
 
  


Reply

Tags
mailx


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
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 01:05 PM
How to transfer mail server(all mail account, message of all user) to another machine addil Linux - Newbie 4 04-13-2009 08:02 AM
Sending root mail to an external mail account aquaboot Debian 13 01-09-2009 07:23 PM
How to configure sendmail only to send mail to external mail account Nivix Linux - Newbie 2 10-23-2008 12:46 AM
How to have limited mail on a linux server that support unlimited e-mail account mmh Linux - General 3 03-15-2006 06:52 AM


All times are GMT -5. The time now is 08:56 AM.

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