Re: [ilugd] postfix rejecting mails for non-local users
Srinivasa == Srinivasa Rao [EMAIL PROTECTED] writes: Srinivasa there is no issue with fetchmail here simply bcoz Srinivasa fetchmail is downloading mails for my local-users which Srinivasa are coming from external users from my isp's mail-host Srinivasa and giving them to the local smtp daemon which is Srinivasa giving the mails to the local users the issue is with Srinivasa outgoing mails sent by localusers to non-local users Srinivasa who are on the same domain abc.net should be delivered Srinivasa via dns Srinivas, the issue here simply is the fact that you've configured abc.net to be your localdomain and postfix is assuming that it is supposed to accept mails for abc.net. Now wheneve someone tries to relay mail through your postfix mailserver it would assume that the mail is meant for a user on the localdomain(and abc.net in this case is your localdomain as far as postfix knows). And as far as your DNS goes, for that too, localdomain would have priority for being abc.net rather than it going and looking for the actual abc.net. Think about it. - prateek -- When a child is taught ... its programmed with simple instructions -- and at some point, if its mind develops properly, it exceeds the sum of what it was taught, thinks independently. -- Dr. Richard Daystrom, The Ultimate Computer, stardate 4731.3. -- Prateek Khanna Web: http://d10systems.com/prateek | http://d10systems.com Email: [EMAIL PROTECTED] | [EMAIL PROTECTED] ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
At 11:27 AM 04/08/2004, you wrote: On 04/08/2004 11:00 AM, Srinivasa Rao wrote: there is no issue with fetchmail here simply bcoz fetchmail is downloading mails for my local-users which are coming from external users from my isp's mail-host and giving them to the local smtp daemon which is giving the mails to the local users the issue is with outgoing mails sent by localusers to non-local users who are on the same domain abc.net should be delivered via dns As Sandip said, you should make a separate domain or even a subdomain like office.abc.net and use that for local. You can set up rules or aliases that [EMAIL PROTECTED] should go to [EMAIL PROTECTED] and that will be delivered locally. If an email shows up as [EMAIL PROTECTED] and there is no alias for that, it will be SMTPed out to the abc.net MX. - Ankur. Maybe this article in PCQuest might be of help: http://www.pcquest.com/content/search/showarticle.asp?artid=54872 Sanjay Dutt ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
Sandip Bhattacharya wrote: Srinivasa Rao wrote: let me make it clear my server downloads mails through fetchmail for abc.net and my postfix configured as abc.net as local domain now there are several users who are in otherlocations who are accessing mails directly from my isp's mailhost.now my local user whenever sends an email to the non local user in the domain abc.net my postfix rejects the messages saying user not exists which is obvously true but the mail needs to be delivered via dns to my isp's mailhost. Use a different domain for your internal use (like abc.off), configure fetchmail to rewrite the envelope recipient before sending mail to the local postfix server (fetchmail global parameters smtpaddress, AFAIK). Configure postfix to make this domain as the local domain. Downside is that mails sent to even local users using the original domain will be sent out to the Internet and downloaded again. This is absoultely the wrong the way. Look at: http://www.postfix.org/rewrite.html#luser_relay -- Regards, Varun Varma --- Mindframe Software Services Pvt. Ltd. http://www.mindsw.com --- ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
Sandip Bhattacharya wrote: Varun Varma wrote: This is absoultely the wrong the way. Look at: http://www.postfix.org/rewrite.html#luser_relay Interesting. fallback_transport seems to be the way to go. :) I should be reading up the postfix hacks more often. Quite a postfix specific solution though. Solves the OP's problem in any case. Umm...more of PostFix feature. That's why I choose particular MTAs in particular cases - depeding on the feature set they provide. Varun, while you could address the OP's problem with this Postfix hack what do you do when you are not using Postfix as in this case? Take up the absolute wrong way? ;) Nope. Generic solution for all MTAs: Create aliases/rewrite rules for offsite addresses. E.g., for sendmail, in /etc/aliases: offsiteuser: [EMAIL PROTECTED] E.g. Domain is: abc.net, create a hostname like mail.abc.net, which points to the IP[s] of the MX. The downside of this this is that the backup MXs would not be used in case the primary is down, but there are two solutions for that: - Set up the DNS to return IPs for mail.abc.net same as the MXs in round robin. - Setup the mail.abc.net as a CNAME pointing to abc.net. That way the MX resolution for mail.abc.net would be the same as for abc.net. Never tried it and it *might* fail on some MTAs, which start looking at the DNS query reply in detail instead of accepting the returned IPs. This approach would have the side effect to changing the envolope address to mail.abc.net for mails to offsite users that come from a particular site. Depending on how you see it, that's a feature/bug. With Exim you can do this by setting up routers/directors/transports accordingly. Anyone know how to do this in sendmail, without using aliases? I hate qmail, and never looked at Courier. And, yes, I don't know how to do this with M$ Exchange. Also, if you really need to create a local domain, I highly recommend creating it as a legitimate subdomain, e.g. delhi.abc.net - lets you use dynamic DNS, and in my opinion, looks better. -- Regards, Varun Varma --- Mindframe Software Services Pvt. Ltd. http://www.mindsw.com --- ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
-BEGIN PGP SIGNED MESSAGE- If i understand correctly ur system is in private lan and it only listens to private lan... IF SO... local_recipient_maps = mynetworks = [IP Address of ur network in CIDR] transport_maps = dbm:$config_directory/transport This sould solve ur problem...with a transport_map table which contains the mail host of ur abc.net. If not. Let me know.. I am not an expert in Postfix, but a learning beginner. Regars EtM!! -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for non-commercial use http://www.pgp.com iQEVAwUBQHUYBMxSu3MjBL6jAQF0eAf/aDRnExrq/M7PEa9zJ/LzkkZ3U1xj1j+/ 8MzCr0/lus56mlbdoj7+V0UGpUg8XpzEQPyueW+crRa7nWEZj68VIvtU6NXZyVSx zXIF2UyIieJqMz6GC1//EJJqpOjji+KrZ5sJNfJyCvN9n9vfI26QwwVUAUWPJ8Zp dSniR2dkuneCNMWzX9mH8yavE31xSbijnKLItsuEzyPEF5nk30HcZbreaG5MhTja OPGNDY61l4t707ku6V9f2Zd80acjYkKUmdHc5D4RRUwmLpVn2u7EBL2wlPp67tbv IxrzvkHmqC9r+cS7VVOpYHKZQMiUQx9FvrpQULmtsWk9amOXEdNgBg== =dxSY -END PGP SIGNATURE- ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
[ilugd] postfix rejecting mails for non-local users
hello i am having redhat 9 with postfix installed and configured for my domain abc.net now i have lots of users who are not local to my domain but having emaild like [EMAIL PROTECTED] now whenever my local user sends a mail to [EMAIL PROTECTED] who is not local user, postfix is rejecting the mails saying user not exists which is true but the mail should be delivered to the mailbox of [EMAIL PROTECTED] via dns to my mailhost. can anybody suggest on this!!! regds srinivas = T.Srinivasa Rao Head Tech Support Microworld software Pvt Ltd Delhi Cell phone : 982415 __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
Srinivasa Rao wrote: hello i am having redhat 9 with postfix installed and configured for my domain abc.net now i have lots of users who are not local to my domain but having emaild like [EMAIL PROTECTED] now whenever my local user sends a mail to [EMAIL PROTECTED] who is not local user, postfix is rejecting the mails saying user not exists which is true but the mail should be delivered to the mailbox of [EMAIL PROTECTED] via dns to my mailhost. can anybody suggest on this!!! regds srinivas It would be helpful if you post yoru postconf -n output then we might be able to help quicker ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
Srinivasa == Srinivasa Rao [EMAIL PROTECTED] writes: Srinivasa hello i am having redhat 9 with postfix installed and Srinivasa configured for my domain abc.net now i have lots of Srinivasa users who are not local to my domain but having emaild Srinivasa like [EMAIL PROTECTED] now whenever my local user sends a mail Srinivasa to [EMAIL PROTECTED] who is not local user, postfix is Srinivasa rejecting the mails saying user not exists which is Srinivasa true but the mail should be delivered to the mailbox of Srinivasa [EMAIL PROTECTED] via dns to my mailhost. can anybody suggest Srinivasa on this!!! Lets try and make things a lil' clearer here. Does this postfix server receive all your mails for abc.net. If it does then its justified for trying to receive mail for your [EMAIL PROTECTED] and if not present give an error. Now since you say [EMAIL PROTECTED] is not your local user, so which server is he a user on? - prateek -- Prateek Khanna Web: http://d10systems.com/prateek | http://d10systems.com Email: [EMAIL PROTECTED] | [EMAIL PROTECTED] ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
let me make it clear my server downloads mails through fetchmail for abc.net and my postfix configured as abc.net as local domain now there are several users who are in otherlocations who are accessing mails directly from my isp's mailhost.now my local user whenever sends an email to the non local user in the domain abc.net my postfix rejects the messages saying user not exists which is obvously true but the mail needs to be delivered via dns to my isp's mailhost. regds srinivas --- Prateek Khanna [EMAIL PROTECTED] wrote: Srinivasa == Srinivasa Rao [EMAIL PROTECTED] writes: Srinivasa hello i am having redhat 9 with postfix installed and Srinivasa configured for my domain abc.net now i have lots of Srinivasa users who are not local to my domain but having emaild Srinivasa like [EMAIL PROTECTED] now whenever my local user sends a mail Srinivasa to [EMAIL PROTECTED] who is not local user, postfix is Srinivasa rejecting the mails saying user not exists which is Srinivasa true but the mail should be delivered to the mailbox of Srinivasa [EMAIL PROTECTED] via dns to my mailhost. can anybody suggest Srinivasa on this!!! Lets try and make things a lil' clearer here. Does this postfix server receive all your mails for abc.net. If it does then its justified for trying to receive mail for your [EMAIL PROTECTED] and if not present give an error. Now since you say [EMAIL PROTECTED] is not your local user, so which server is he a user on? - prateek -- Prateek Khanna Web: http://d10systems.com/prateek | http://d10systems.com Email: [EMAIL PROTECTED] | [EMAIL PROTECTED] ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/ = T.Srinivasa Rao Head Tech Support Microworld software Pvt Ltd Delhi Cell phone : 982415 __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
no the mails sent to even local users using the original domain will be delivered locally there is no issue with fetchmail here simply bcoz fetchmail is downloading mails for my local-users which are coming from external users from my isp's mail-host and giving them to the local smtp daemon which is giving the mails to the local users the issue is with outgoing mails sent by localusers to non-local users who are on the same domain abc.net should be delivered via dns regds srinivas --- Sandip Bhattacharya [EMAIL PROTECTED] wrote: Srinivasa Rao wrote: let me make it clear my server downloads mails through fetchmail for abc.net and my postfix configured as abc.net as local domain now there are several users who are in otherlocations who are accessing mails directly from my isp's mailhost.now my local user whenever sends an email to the non local user in the domain abc.net my postfix rejects the messages saying user not exists which is obvously true but the mail needs to be delivered via dns to my isp's mailhost. Use a different domain for your internal use (like abc.off), configure fetchmail to rewrite the envelope recipient before sending mail to the local postfix server (fetchmail global parameters smtpaddress, AFAIK). Configure postfix to make this domain as the local domain. Downside is that mails sent to even local users using the original domain will be sent out to the Internet and downloaded again. - Sandip -- Sandip Bhattacharya sandip (at) puroga.com Puroga Technologies Pvt. Ltd. Work: http://www.puroga.comHome: http://www.sandipb.net GPG: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3 ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/ = T.Srinivasa Rao Head Tech Support Microworld software Pvt Ltd Delhi Cell phone : 982415 __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
Srinivasa Rao wrote: no the mails sent to even local users using the original domain will be delivered locally there is no issue with fetchmail here simply bcoz fetchmail is downloading mails for my local-users which are coming from external users from my isp's mail-host and giving them to the local smtp daemon which is giving the mails to the local users the issue is with outgoing mails sent by localusers to non-local users who are on the same domain abc.net should be delivered via dns The issue is not with fetchmail, the issue is with your approach to the problem. If you are telling postfix that it is the authorative mail server for the domain(by setting localdomains), why will postfix even consult DNS or try to forward mails elsewhere for the same domain? Mail routing decisions are based on domains, not users. There is no standard way of configuring any mail server such that half of their users lie on one server and half on some other server. The solution as I suggested, is to configure a different local domain for your private LAN. - Sandip -- Sandip Bhattacharya sandip (at) puroga.com Puroga Technologies Pvt. Ltd. Work: http://www.puroga.comHome: http://www.sandipb.net GPG: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3 ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] postfix rejecting mails for non-local users
On 04/08/2004 11:00 AM, Srinivasa Rao wrote: there is no issue with fetchmail here simply bcoz fetchmail is downloading mails for my local-users which are coming from external users from my isp's mail-host and giving them to the local smtp daemon which is giving the mails to the local users the issue is with outgoing mails sent by localusers to non-local users who are on the same domain abc.net should be delivered via dns As Sandip said, you should make a separate domain or even a subdomain like office.abc.net and use that for local. You can set up rules or aliases that [EMAIL PROTECTED] should go to [EMAIL PROTECTED] and that will be delivered locally. If an email shows up as [EMAIL PROTECTED] and there is no alias for that, it will be SMTPed out to the abc.net MX. - Ankur. ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/