LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mail command - changing from line (https://www.linuxquestions.org/questions/linux-server-73/mail-command-changing-from-line-643209/)

Murdock1979 05-19-2008 05:32 AM

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

aus9 05-19-2008 06:23 AM

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

Murdock1979 05-19-2008 06:29 AM

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

aus9 05-19-2008 10:18 AM

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/

Murdock1979 05-19-2008 02:54 PM

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


All times are GMT -5. The time now is 04:35 AM.