Sendmail Question

Posted on 1998-11-09
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 but I need 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 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.
Question by:legba
  • 3
  • 3

Author Comment

ID: 1587635
Edited text of question

Expert Comment

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..


Author Comment

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.  
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Accepted Solution

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


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


of course, you can expand the user names to fully qualified domain names and user ids

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


    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..


Author Comment

ID: 1587639
Ok, Right, each user has their own email address,, etc...all mail addressed as 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 "" 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
I hope it's clear this time.


Expert Comment

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


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

825 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