?
Solved

Sendmail/Fetchmail Combo Bcc mail all coming to root

Posted on 2002-07-28
6
Medium Priority
?
511 Views
Last Modified: 2013-12-17
Hi

I've got mail coming into a POP3 isp box.

Fetchmail is getting it.  and squirting it all at port 25 sendmail is then handling the delivery.

All bcc mail is coming to root (me!)

How can I get sendmail to parse the header and extract the line that says

'Received: from [202.187.228.7] (helo=orbit-svr7.orbitel.com.my)
     by m1.dnsix.com with esmtp (Exim 3.34 #1)
     id 17YzaJ-0007Ti-00
     for jae.tan@radius-ed.com; Sun, 28 Jul 2002 18:44:32 -0700'

and suck out the correct alias which is jae.tan and deliver the BCC'd picture of little cats, daft jokes etc to her!

Regards

Ben

0
Comment
Question by:bendecko
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:vsamtani
ID: 7187810
You need to tell fetchmail that it is processing mail for the domain "radius-ed.com", and not just the particular machine you are running it on. It will then be able to use the name part of addresses like name@radius-ed.com.

So you need something like:

poll your.mailbox.server.tld localdomains radius-ed.com
  user bendecko password secret to * here


(ie, just add the "localdomains radius-ed.com" to the server definition of your mailbox server)



Vijay
0
 
LVL 1

Author Comment

by:bendecko
ID: 7189476
vsamtani,

thanks for the help this is roots .fetchmailrc file

# Configuration created Sat Jul 20 01:13:15 2002 by fetchmailconf
set syslog
set postmaster "postmaster"
set bouncemail
set no spambounce
set properties ""
poll pop.time.net.my localdomains radius-ed.com
       user 'bendecko' with password 'secret' to * here


What is wrong with that?

In the header of the message I get

'X-Fetchmail-Warning: no recipient addresses matched declared local names'

Even tho '

for jae.tan@radius-ed.com; Mon, 29 Jul 2002 18:50:46 -0700

is in the same header.

any ideas?

bendecko



0
 
LVL 5

Expert Comment

by:vsamtani
ID: 7192879
You could also try adding an

aka m1.dnsix.com

to your server definition. Fetchmail ought not to need this, because m1.dnsix.com is the MX server for your domain, but it's worth a try to see if it makes a difference.

I presume you do have a local user called jae.tan?

Vijay
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 1

Author Comment

by:bendecko
ID: 7200029
yeah i have jae.tan

i've not added the line for aka ets yet cos i spotted this :-

--------------------- sendmail Begin ------------------------

340 bytes transferred
1 messages sent

**Unmatched Entries**

unable to qualify my own domain name (klang) -- using short name
g6UDbna24731: g74ECHb26392: sender notify: Cannot send message for 5 days

 ---------------------- sendmail End -------------------------

maybe thats whats causing it?

i've not got proper DNS setup eg zone file blah blah yet cos we were on dial-up and now adsl.

ben
0
 
LVL 5

Accepted Solution

by:
vsamtani earned 200 total points
ID: 7200608
If you don't have dns correctly configured, you need to tell fetchmail which servers handle mail for you. Normally, fetchmail will use dns to find out that m1.dnsix.com is an MX server for your domain, and then it will read the rest of the Received header from that server. Only then will it pay any attention to the jae.tan@radius-ed.com address.

So, either make sure that you can do dns queries from the box that fetchmail is running on, or explicitly tell fetchmail about your mx server by using the aka directive.

Vijay
0
 
LVL 1

Author Comment

by:bendecko
ID: 7202427
brilliant.  that works a treat.

well done

ben
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question