Re: (mailx) How can I alter From header

2010-10-27 Thread Dmitrij Czarkoff
On Tue, Oct 26, 2010 at 4:13 AM, Chris Smith obsd_m...@chrissmith.org wrote: Haven't previously played with sendmail but out of academic interest I decided to look into this as the problem seemed to be much more straightforward then i first imagined. This works here (I've set up a SMART_HOST

Re: (mailx) How can I alter From header

2010-10-27 Thread Chris Smith
On Wed, Oct 27, 2010 at 3:19 PM, Dmitrij Czarkoff czark...@gmail.com wrote: By the way, Gmail moves my mail to spam, so all this genercs magic seem to be insufficient, and I'll have to figure out how to authente sendmail against smtp.gmail.com. Other recipients will also mark as spam or

Re: (mailx) How can I alter From header

2010-10-27 Thread Dmitrij Czarkoff
On Wed, Oct 27, 2010 at 9:36 PM, Chris Smith obsd_m...@chrissmith.org wrote: Other recipients will also mark as spam or possibly even drop your posts due to Google's SPF records for gmail.com. At some point you need to relay through smtp.gmail.com in order to successfully use that From:

Re: (mailx) How can I alter From header

2010-10-25 Thread Dmitrij Czarkoff
On Mon, Oct 25, 2010 at 2:25 AM, Claus Assmann ca+openbsd_m...@esmtp.org wrote: Run sendmail in test mode: sendmail -bt ? $={G} /map generics d...@ao531h.bedova /tryflags ES /try esmtp d...@ao531h.bedova % sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter ruleset

Re: (mailx) How can I alter From header

2010-10-25 Thread Tomas Bodzar
On Mon, Oct 25, 2010 at 1:58 PM, Dmitrij Czarkoff czark...@gmail.com wrote: On Mon, Oct 25, 2010 at 2:25 AM, Claus Assmann ca+openbsd_m...@esmtp.org wrote: Run sendmail in test mode: sendmail -bt ? $={G} /map generics d...@ao531h.bedova /tryflags ES /try esmtp d...@ao531h.bedova %

Re: (mailx) How can I alter From header

2010-10-25 Thread Dmitrij Czarkoff
On Mon, Oct 25, 2010 at 1:05 PM, Tomas Bodzar tomas.bod...@gmail.com wrote: You're using some odd mix. If you are using smtpd then your mailer.conf is completely wrong. Here you can find how to enable smtpd and set mailer.conf for that

Re: (mailx) How can I alter From header

2010-10-25 Thread Dmitrij Czarkoff
I've noticed the following lines in my maillog: Oct 25 12:51:17 ao531h sendmail[10147]: gethostbyaddr(192.168.1.2) failed: 1 Oct 25 12:52:15 ao531h sendmail[29793]: gethostbyaddr(192.168.1.2) failed: 1 May it be the reason sendmail doesn't rewrite my address? -- Dmitrij D. Czarkoff

Re: (mailx) How can I alter From header

2010-10-25 Thread Chris Smith
On Mon, Oct 25, 2010 at 7:13 AM, Dmitrij Czarkoff czark...@gmail.com wrote: I wan't to send messages through smtp.gmail.com with From: czark...@gmail.com. If you can find the sendmail equivalents here's some possibly helpful notes from my postfix setup. main.cf(postfix's main configuration

Re: (mailx) How can I alter From header

2010-10-25 Thread Chris Smith
On Mon, Oct 25, 2010 at 11:25 AM, Chris Smith obsd_m...@chrissmith.org wrote: So only email sent from my Google Apps/Gmail accounts Might be clearer had I stated this as: So only email sent from my Google Apps/Gmail addresses... However, I have gotten quite used to the web interface and use

Re: (mailx) How can I alter From header

2010-10-25 Thread Chris Bennett
I couldn't resolve the From: header problem for sending mail from mutt. My /etc/myname file contained a non-resolvable hostname my ISP set-up. Once I changed myname to the proper hostname for my server, problem fixed. Perhaps you could change /etc/myname to gmail.com? I never could fully get

Re: (mailx) How can I alter From header

2010-10-25 Thread Jan Stary
On Oct 25 14:32:52, Chris Bennett wrote: Perhaps you could change /etc/myname to gmail.com? Or maybe change /etc/mygate to something faster!

Re: (mailx) How can I alter From header

2010-10-25 Thread Vadim Zhukov
On 26 October 2010 c. 00:22:47 Jan Stary wrote: On Oct 25 14:32:52, Chris Bennett wrote: Perhaps you could change /etc/myname to gmail.com? Or maybe change /etc/mygate to something faster! Yeah, try 127.0.0.1. Fast as it only can be... -- Best wishes, Vadim Zhukov A: Because it

Re: (mailx) How can I alter From header

2010-10-25 Thread Chris Smith
On Sun, Oct 24, 2010 at 7:06 PM, Dmitrij Czarkoff czark...@gmail.com wrote: Sorry, the actual lines I added to openbsd-localhost.mc are: FEATURE(genericstable, `hash /etc/mail/genericstable')dnl FEATURE(`masquerade_envelope')dnl And no luck. I keep recieving mail from my usern...@domain.name

Re: (mailx) How can I alter From header

2010-10-25 Thread Chris Smith
On Mon, Oct 25, 2010 at 10:13 PM, Chris Smith obsd_m...@chrissmith.org wrote: GENERICS_DOMAIN(`idomain.name')dnl Oops, typo, should be: GENERICS_DOMAIN(`domain.name')dnl although domain.name gets replaced with yours, the leading i was incorrect

(mailx) How can I alter From header

2010-10-24 Thread Dmitrij Czarkoff
I'm using mail(1) to send mail from my Gmail account. The messages I send have my username and hostname in From header. Can I somehow alter the From header to my gmail address? -- Dmitrij D. Czarkoff

Re: (mailx) How can I alter From header

2010-10-24 Thread Chris Smith
On Sun, Oct 24, 2010 at 4:04 PM, Dmitrij Czarkoff czark...@gmail.com wrote: I'm using mail(1) to send mail from my Gmail account. The messages I send have my username and hostname in From header. Can I somehow alter the From header to my gmail address? For a global change in Gmail: Settings

Re: (mailx) How can I alter From header

2010-10-24 Thread Philip Guenther
On Sun, Oct 24, 2010 at 1:04 PM, Dmitrij Czarkoff czark...@gmail.com wrote: I'm using mail(1) to send mail from my Gmail account. The messages I send have my username and hostname in From header. Can I somehow alter the From header to my gmail address? Assuming you're using the out-of-the-box

Re: (mailx) How can I alter From header

2010-10-24 Thread Dmitrij Czarkoff
On Sun, Oct 24, 2010 at 10:17 PM, Philip Guenther guent...@gmail.com wrote: On Sun, Oct 24, 2010 at 1:04 PM, Dmitrij Czarkoff czark...@gmail.com wrote: I'm using mail(1) to send mail from my Gmail account. The messages I send have my username and hostname in From header. Can I somehow alter

Re: (mailx) How can I alter From header

2010-10-24 Thread Jamie Paul Griffin
For a global change in Gmail: Settings Accounts and Import Send mail as: edit info Otherwise add different accounts and send as them (although smtp authentication will be via the username and not the added accounts). Google Apps makes this more flexible as you can alias users. I don't

Re: (mailx) How can I alter From header

2010-10-24 Thread Dmitrij Czarkoff
On Mon, Oct 25, 2010 at 12:50 AM, Jamie Paul Griffin ja...@griffin.arimaspi.co.uk wrote: For a global change in Gmail: Settings Accounts and Import Send mail as: edit info Otherwise add different accounts and send as them (although smtp authentication will be via the username and not the

Re: (mailx) How can I alter From header

2010-10-24 Thread Dmitrij Czarkoff
On Mon, Oct 25, 2010 at 12:58 AM, Dmitrij Czarkoff czark...@gmail.com wrote: On Mon, Oct 25, 2010 at 12:50 AM, Jamie Paul Griffin ja...@griffin.arimaspi.co.uk wrote: For a global change in Gmail: Settings Accounts and Import Send mail as: edit info Otherwise add different accounts and

Re: (mailx) How can I alter From header

2010-10-24 Thread Jamie Paul Griffin
I am in trouble making sendmail actually read /etc/mail/genericstable.db: setting FEATURE(genericstable, `hash -o /etc/mail/mailnames')dnl FEATURE(`masquerade_envelope')dnl in mc file and compiling it doesn't help and I can't find out, why so. When it comes to using Sendmail features the

Re: (mailx) How can I alter From header

2010-10-24 Thread Dmitrij Czarkoff
On Mon, Oct 25, 2010 at 1:10 AM, Jamie Paul Griffin ja...@griffin.arimaspi.co.uk wrote: When it comes to using Sendmail features the only thing you can do is spend time reading about them. There is lot's of information out there. It is quite a complex system which requires a certain level of

Re: (mailx) How can I alter From header

2010-10-24 Thread Claus Assmann
On Mon, Oct 25, 2010, Dmitrij Czarkoff wrote: /etc/mail/genericstable (hashed with sudo make at /etc/mail): ddc czark...@gmail.com d...@ao531h.bedova czark...@gmail.com The documentation (cf/README) states: genericstable This feature will cause unqualified addresses (i.e., without

Re: (mailx) How can I alter From header

2010-10-24 Thread Claus Assmann
On Mon, Oct 25, 2010, Dmitrij Czarkoff wrote: /var/log/maillog: from=d...@ao531h.bedova, size=562, nrcpts=1, proto=ESMTP, relay=localhost [127.0.0.1] Oct 25 01:55:02 ao531h smtpd[24195]: 1287964495.exbcVgC3ABHbm9B9: ^ ^^^

Re: (mailx) How can I alter From header

2010-10-24 Thread Vijay Sankar
On 2010-10-24, at 6:06 PM, Dmitrij Czarkoff wrote: On Mon, Oct 25, 2010 at 12:58 AM, Dmitrij Czarkoff czark...@gmail.com wrote: On Mon, Oct 25, 2010 at 12:50 AM, Jamie Paul Griffin ja...@griffin.arimaspi.co.uk wrote: For a global change in Gmail: Settings Accounts and Import Send mail as:

Re: (mailx) How can I alter From header

2010-10-24 Thread Chris Smith
On Sun, Oct 24, 2010 at 4:18 PM, Chris Smith obsd_m...@chrissmith.org wrote: I'm using mail(1) to send mail from my Gmail account. The messages I send have my username and hostname in From header. Can I somehow alter the From header to my gmail address? For a global change in Gmail: Settings