Solved

Sendmail Question

Posted on 1998-11-09
6
223 Views
Last Modified: 2010-03-18
I can't receive mail from a certain mailing list, all mail is sent with "To: (Recipients List Suppresed)" with no other usable addresses anywhere in the headers (it contains ISPaccount@ISP.com but I need User@LocalDomain.com to be able to use it.) I use Fetchmail to retrieve the messages from my ISP.  Basically what I want to do is set up a default account that all unsendable email is sent to, (i.e me@localdomain.com) how can I do this? does it have to be done via sendmail, or is there something I can set in fetchmail?  The easiest solution is the best solution, I'm looking for a hack, nothing too involved, but any info will be helpful.  Thanks.
0
Comment
Question by:legba
  • 3
  • 3
6 Comments
 

Author Comment

by:legba
ID: 1587635
Edited text of question
0
 
LVL 5

Expert Comment

by:tfabian
ID: 1587636
have you explored using aliases or the .forward file??

you could setup an alias to resend/forward all incoming mail back to yourself but at another address that you can deal with..


0
 

Author Comment

by:legba
ID: 1587637
forgot to mention that there are 2 other people that get their mail from the same server, so I can't just forward all mail, only the stuff that doesn't correspond to an existing address.  I don't know enough about aliases to know whether or not it would allow this.  
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 5

Accepted Solution

by:
tfabian earned 100 total points
ID: 1587638
please clarify what you're attempting to do??

are you popping mail from your ISP??

if other people get their mail from the same feed, do they have different ids? or does everything come into one mailbox??


aliases allow you to resend or redirect messages.. eg. if my username on a given system was "jdoe", but many people sent mail to "jdough" instead, I could setup an alias so that any incoming mail to "jdough" would get sent to "jdoe" instead..  

these aliases go in the /etc/aliases file..  it's a simple format..


using my example above

   jdough:jdoe

or if I wanted to send to two people, eg. msmith might need a copy, then

  jdough:jdoe,msmith

of course, you can expand the user names to fully qualified domain names and user ids
eg.
 
    jdough:jdoe,msmith,rjones@host.somewhere.else

or you can substitute programs or filters that act upon the incoming messages..

eg.  

    archive:   /disk1/archive/data, "/usr/local/bin/hypermail -i -u -d/disk1/archive-data -l\"web archives\""

would take incoming mail to the "archive" address, append it to a file called /disk1/archive/data, then would pipe that file into the hypermail program which would generate a web based archive of the messages...

it assumes you've got hypermail installed along with a web server..

but you get the idea.. if you have a filtering program that does accomplish the task you want (it can be a script file), you can use a similar technique to resend your messages..



0
 

Author Comment

by:legba
ID: 1587639
Ok, Right, each user has their own email address user1@blah.com, user2@blah.com, etc...all mail addressed as user#@blah.com goes to the same ISP mailbox, which we then fetch and sort with linux... all except the mail from a certain mailing list, which instead of "User#@blah.com" for the To: field it contains "(Recipients list supressed)" in order to prevent spam and knowing who else is on this list.  The way I have it set up now, fetchmail retrieves all mail from the ISP account, and sends it to sendmail, which sends it to whichever user is in the To: field of each individual message, But since the mailing list  messages have no email address in the To: field, they don't get sent anywhere, and wind up in limbo.  (thanks for the explaination of aliases btw)  so .forwarding, and now aliases, wouldn't do the trick because they aren't sent to any address that they can be forwarded from.  So what I'm looking for, is some sort of default address, like if it can't find a valid address in the message, it would send the message to default@blah.com.
I hope it's clear this time.

0
 
LVL 5

Expert Comment

by:tfabian
ID: 1587640
setup an alias for POSTMASTER to point to one of your users..  it should already have an alias in your /etc/aliases file..

typically, the POSTMASTER account gets all the bounced mail sent to it by default..


good luck


0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now