May 12, 2024, 02:45:30 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Mydestination Parameter In Postfix  (Read 3937 times)

Offline rajesh.bahl

  • Linux Learner
  • ***
  • Posts: 86
Mydestination Parameter In Postfix
« on: February 23, 2008, 07:56:25 AM »

Hi !

I am trying to configure postfix 2.3.3-2 shipped with CentOS 5.

In the original main.cf , the mydestination parameter is commented and if AI issue the command:

postconf mydestination , the result is: $myhostname, localhost.$mydomain, $mydomain

If I edit this parameter to the form:

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
< white space > mail.$mydomain, www.$mydomain, ftp.$mydomain


and run the command: postconf mydestination

I get the same output as in the commented state of mydestination parameter.


I have not been able to understand why anything provided as "value" to this parameter in main.cf is not getting effected ?

Pls. help !



regards
rajesh.bahl

Offline rajesh.bahl

  • Linux Learner
  • ***
  • Posts: 86
Re: Mydestination Parameter In Postfix
« Reply #1 on: March 18, 2008, 08:04:44 AM »

I have observed the same thing while putting some restrictions using smtpd_recipient_restrictions parameter in main.cf as under:

smtpd_recipient_restrrictions =
          permit_mynetworks
          reject_unauth_destination
          reject_non_fqdn_sender
         

If I use these settings in main.cf, restart postfix service and try to test these restrictions by using :
telnet  localhost  25
HELO  .
MAIL FROM: xxx@yyy.com
RCPT TO: uuu@vvv.com


The process does not give any error but proceeds further for keying in "DATA".

It seems that the restrictions are NOT getting effected.

Is it a problem in my writing/configuration error  ?


Can anyone help ?



rajesh.bahl

Offline rajesh.bahl

  • Linux Learner
  • ***
  • Posts: 86
Re: Mydestination Parameter In Postfix
« Reply #2 on: March 24, 2008, 02:52:18 PM »


Dear All,

Please help !!
I am literally tired of spam and want to get rid of the same.


rajesh.bahl