Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
you'd list list your domain under the mydomains variable and have nothign listed under relay_domains. you've no reason to go anywhere outside of the main.cf config file.
can you clarify your situation a bit more... might have got wires crossed. are you saying that you only want "from" addresses in a single domain to be accepted into a mail server of that domain? not just that you only want to receive mail TO that domain? are you not hosting this domain yourself? if so why would mail FROM that box enter it?
I only want to recieve external email from only "one" outside domain, e.g myfriendserver.com, and bounce/block all other external emails sent to me from all other domain(s).
Basically I only want to recieve external email from "myfriendserver.com", and also internal mail, and block/bounce everything else.
Thanks for the help, been on this all day and cant achieve the result.
ok, now i get the question (i think) and i backtrack a little, it looks like this to me...
check_sender_access type:table
Search the specified access(5) database for the MAIL FROM address, domain, parent domains, or localpart@, and execute the corresponding action.
Thanks again... I could not find check_sender_access in the .cf anywhere... Been googling and have found a tiny bit of info on how to use check sender but it was not very helpful..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.