Networking Forums

Networking Forums > Computer Networking > Linux Networking > Changing origin in forwarded mails

Reply
Thread Tools Display Modes

Changing origin in forwarded mails

 
 
Rikishi 42
Guest
Posts: n/a

 
      12-11-2006, 09:06 PM
I've got this old machine running several cron jobs for me, some at night.
to get the results from the jobs, I had them mailed to me.

So far, I had used a simple .forward file, and configured the MTA to use my
providers SMTP. The mails were sent my provider's mailbox, enabling me to
read them from work with a webmail and then later fetch the with Kmail.

I'm using SUSE 10.0 on both machines, incidently.

Yesterday, my provider seems to have changed the rules on the SMTP server.
The messages are no longer getting out, because the origin is of the format:
(E-Mail Removed). It should be (E-Mail Removed).
The server answers 'unknown domain'.

How can I change this ?


--
Research is what I'm doing, when I don't know what I'm doing.
(von Braun)

 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      12-11-2006, 10:03 PM
Rikishi 42 <(E-Mail Removed)> writes:

>I've got this old machine running several cron jobs for me, some at night.
>to get the results from the jobs, I had them mailed to me.


>So far, I had used a simple .forward file, and configured the MTA to use my
>providers SMTP. The mails were sent my provider's mailbox, enabling me to
>read them from work with a webmail and then later fetch the with Kmail.


>I'm using SUSE 10.0 on both machines, incidently.


>Yesterday, my provider seems to have changed the rules on the SMTP server.
>The messages are no longer getting out, because the origin is of the format:
>(E-Mail Removed). It should be (E-Mail Removed).
>The server answers 'unknown domain'.


Is mydomain.org actually a valid mail domain? Ie, if email is sent to
(E-Mail Removed) will it get to your? Is there an MX record for
mydomain.org?
Many email software packages are looking for valid return email addresses
befor accepting the mail

Anyway, you do not say what your mta is.
Under postfix, edit /etc/postfix/main.cf and add the line
masquerade_domains = $mydomain
masquerade_exceptions = root
Assuming that mydomain is actually your mydomain.org.
This will change all addresses of the form
(E-Mail Removed) to (E-Mail Removed)



>How can I change this ?



>--
>Research is what I'm doing, when I don't know what I'm doing.
>(von Braun)


 
Reply With Quote
 
Rikishi 42
Guest
Posts: n/a

 
      12-12-2006, 07:03 AM
Unruh wrote:

> Anyway, you do not say what your mta is.

It was/is postfix.

> Under postfix, edit /etc/postfix/main.cf and add the line
> masquerade_domains = $mydomain
> masquerade_exceptions = root
> Assuming that mydomain is actually your mydomain.org.
> This will change all addresses of the form
> (E-Mail Removed) to (E-Mail Removed)


Works perfectly !

Thanks for helping me make a first babystep into 'old-style' mail
managment. :-)


--
Research is what I'm doing, when I don't know what I'm doing.
(von Braun)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to ID origin in email headers? Ohmster Linux Networking 18 12-09-2007 11:57 PM
Iptables Forwarded traffic test Linux Networking 6 10-18-2007 01:36 PM
Routing local origin conns out second gateway. Chris Heller Linux Networking 0 01-18-2006 10:23 PM
Changing Network SSID Blocks Incoming Mails To My Inbox? Wireless Internet 23 01-07-2005 03:24 AM
Games getting forwarded in on MN-700 Jason Broadband Hardware 1 07-02-2004 04:47 AM



1 2 3 4 5 6 7 8 9 10 11