ram wrote:
> On Thu, 2009-06-18 at 12:21 +0530, J. Bakshi wrote:
>   
>> Dear list,
>>
>> Here is a very urgent problem with **relay**  in my postfix.
>>
>> My postfix is allowed to relay a particular domain.  I have put the
>> configuration as
>>
>> ````````````````````````````````
>> relay_domains = < domian_name allowed to relay>
>> `````````````````````````````````````
>>
>> I maintain a text file   /etc/postfix/virtual as a source of all my user
>> aliases.
>> I have done  " postmap   /etc/postfix/virtual"   to generate the hash file.
>> Here is my config in main.cf
>>
>> ```````````````
>> virtual_alias_maps = hash:/etc/postfix/virtual
>> ```````````````````````````
>>
>> To activate the map I have restarted the postfix as usual.
>>
>> If I check the mapping with  " postmap -q  <username>@<domain_name> 
>> hash:/etc/postfix/virtual "  it reports back its aliases.
>> Even from server If I send mail to a aliases it forwarded to its actual
>> destination perfectly.
>>
>> But If I send mail from another mail server to any of these aliases it
>> is not forwarded.  Should I always send mail from my own server to get
>> the aliases working correctly ?  then waht is the use of relay domain. 
>> I am really very very confused.  Please enlighten me.
>>
>> thanks
>>     
>
>
> Can you explain "not forwarded" ? ( do you mean rejected, deferred ,
> bounced .. or anything else )
> What is the error you are getting ? Post the maillogs if any 
>
>
> Also post the output of postconf -n 
>
>   

Hello Ram,

Thanks for your kind attention. I am really confused and frustrated.
this system have been working since more than 2 yrs but suddenly the
forwarding is not working.


My transport is set to

`````````````````````````````````````````````
virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp
```````````````````````````

But  now the log reports there is no such file/directory !!!!

I have then manually find the lmtp as below

``````````````````````````````````
find / -name lmtp

/var/spool/postfix/private/lmtp
/usr/lib/postfix/lmtp

ls -l   /var/spool/postfix/private/lmtp  /usr/lib/postfix/lmtp

-rwxr-xr-x 2 root    root    104816 2008-08-04 15:07 /usr/lib/postfix/lmtp
srw-rw-rw- 1 postfix postfix      0 2009-06-18 12:21
/var/spool/postfix/private/lmtp

`````````````````````````````````````````````

So I have used /var/spool/postfix/private/lmtp as transport now and the
error has gone.
But for non existing user I get

``````````````````````````````````````````
relay=[/var/spool/postfix/private/lmtp], delay=2736,
delays=2436/0.04/300/0, dsn=4.4.2, status=deferred (conversation with
[/var/spool/postfix/private/lmtp] timed out while receiving the initial
server greeting)
``````````````````````````````````````````````````

for existing user there is no error

Here is the "postconf -n"

```````````````````````````````````````````
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
delay_warning_time = 4h
disable_vrfy_command = yes
html_directory = /usr/share/doc/packages/postfix/html
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = localhost

mydomain = domain1.com
myhostname = server.domain1.com
mynetworks_style = host

newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = domain2.com, domain2.com
sample_directory = /usr/share/doc/packages/postfix/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (SuSe Linux)

smtpd_data_restrictions = reject_unauth_pipelining,   permit
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_unlisted_sender,  
reject_invalid_hostname,   reject_non_fqdn_hostname,  
reject_non_fqdn_sender,   reject_non_fqdn_recipient,  
reject_unknown_sender_domain,   reject_unknown_recipient_domain,  
permit_mynetworks,   reject_unauth_destination,   reject_rbl_client
opm.blitzed.org,   reject_rbl_client list.dsbl.org,   reject_rbl_client
sbl.spamhaus.org,   reject_rbl_client cbl.abuseat.org,  
reject_rbl_client dul.dnsbl.sorbs.net,   permit
smtpd_sasl_auth_enable = yes

smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 450
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_base = /var/lib/imap
virtual_mailbox_domains = domain2.com, domain2.com
virtual_transport = lmtp:unix:/var/spool/postfix/private/lmtp
`````````````````````````````````````````````````````

Note When I send mail from this very server the mails are forwarded
according to the virtual_alias_maps.
but when I do the same from another server the second server mail.info
shows that the message is <sent> successfully.  But the first server
where my postfix is running with vitual_alias don't show any thing in
logs ( mail.info, mail.err, mail.warn) and even I don't get any mails in
mailbox.


Thanks


>
>
>
>
>
>   

Reply via email to