LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-19-2008, 05:32 AM   #1
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
mail command - changing from line


Hello!

I am getting this error when I use the mail command:

Code:
invalid/host-not-in-DNS return address not allowed
Is there any way to change the from line when invoking the mail command (or some other solution)?

Thanks,
Murdock
 
Old 05-19-2008, 06:23 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
can you post the mail command that gave you that error please.

2) In mdv, you can check errors at /var/log/mail/errors.log
 
Old 05-19-2008, 06:29 AM   #3
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Sure!

Code:
mail -s "test" address@email.com < ~/emails/test
and then in exim4 I get this error:

Code:
2008-05-19 14:24:54 1Jy3U5-00074F-WA ** address@email.com R=smarthost 
=remote_smtp_smarthost: SMTP error from remote mail server after MAIL 
FROM:<me@server-laptop> SIZE=1426: host mail.myisp.net: 550 5.1.8 
invalid/host-not-in-DNS return address not allowed
In Kontact or Apline and can set up my personal values, which sends out emails fine, but I don't know how to do it when using mail (or other command-line mailers such as mutt).

Thanks,
Murdock

Last edited by Murdock1979; 05-19-2008 at 06:30 AM.
 
Old 05-19-2008, 10:18 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
well I do not use debian but have used slack so first
http://linuxgazette.net/issue91/price.html

2) I use postfix but generally speaking mailman is the name of the app for cli mail

and you use a mail transfer agent to route it eg exim, sendmail, postfix

3) looking at this link
http://mirror.hamakor.org.il/archive...004/10638.html

shows that user had a fantasy hostname, similar to me, I know you are deliberately disguising your details so you are not spammed but you may want to read the exim dox on hostnames

so first place is look at /etc/hostname and then the config files for exim.

4) sorry that I do not use exim but try here
http://www.exim-new-users.co.uk/cont...ategory/22/34/
 
Old 05-19-2008, 02:54 PM   #5
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Thanks for all of the links!

However, I am looking for a set up that does not require so much configuration. I am looking for a Linux equivalent to something like:

http://www.downloadjunction.com/prod...890/index.html

FINAL NOTE: using the -f option in sendmail does the trick. I also implemented that into Mutt, so everything seems to work now.

Thanks!
Murdock

Last edited by Murdock1979; 05-19-2008 at 03:37 PM.
 
  


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
Changing default language from command line stinky_tofu Red Hat 8 12-30-2008 01:55 PM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
Changing keyboard layout from command line wimnat Linux - General 0 02-02-2006 04:28 AM
Changing Wallpaper from Command Line b_suny Linux - General 2 06-27-2004 05:52 AM
Changing video resolution from command line? lhouk Linux - General 4 04-15-2004 02:16 PM

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

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

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