On 8/27/06, Vikas Rawal <[EMAIL PROTECTED]> wrote:
>
> I am trying to set up postfix to work as an MTA on my laptop and send mail
> through mtnl server (i connect using mtnl broadband from home). The e-mails
> are not going through...they seem to be ending up in some blackhole.
>
> Does anyone here have experience with postfix, and in particular, with
> setting it up to relay from mtnl servers.
>
> FYI, my main.cf is as follows. As you can see, it uses sasl/tls
> authentication.
>
> ******************88
>
> # See /usr/share/postfix/main.cf.dist for a commented, more complete
> version
> myhostname=shireen.bol.net.in
>
> # Debian specific:  Specifying a file name will cause the first
> # line of that file to be used as the name.  The Debian default
> # is /etc/mailname.
> #myorigin = /etc/mailname
>
> #mydomain = bol.net.in
>
> smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
> biff = no
>
> # appending .domain is the MUA's job.
> append_dot_mydomain = no
>
> # Uncomment the next line to generate "delayed mail" warnings
> #delay_warning_time = 4h
>
> # TLS parameters
> smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
> smtpd_use_tls=yes
> smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
> smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
>
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain = $myhostname
> smtpd_recipient_restrictions = permit_mynetworks,
> permit_sasl_authenticated, reject_unauth_destination
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
> smtpd_sasl_security_options = noanonymous
>
> # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
> # information on enabling SSL in the smtp client.
>
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> myorigin = /etc/mailname
> mydestination = shireen, localhost.localdomain, localhost,
> vikas.bol.net.in, 192.168.1.3
> relayhost = smtp.bol.net.in
> mynetworks = 127.0.0.0/8
> mailbox_size_limit = 0
> recipient_delimiter = +
> inet_interfaces = all
>
>
> *******************8
>
>
> when i send a mail, it is queued for a moment, and then it vanishes. The
> mail.log has something like following.
>
> Aug 27 05:22:08 shireen postfix/pickup[9472]: 06FEE21348A: uid=1000 from=<
> [EMAIL PROTECTED]>
> Aug 27 05:22:08 shireen postfix/cleanup[10901]: 06FEE21348A: message-id=<
> [EMAIL PROTECTED]>
> Aug 27 05:22:08 shireen postfix/qmgr[9473]: 06FEE21348A: from=<
> [EMAIL PROTECTED]>, size=455, nrcpt=1 (queue active)
> Aug 27 05:22:08 shireen postfix/smtp[10903]: 06FEE21348A: to=<
> [EMAIL PROTECTED]>, relay=smtp.bol.net.in[202.159.212.17], delay=0,
> status=bounced (host smtp.bol.net.in[202.159.212.17] said: 530 5.7.1Relaying 
> not allowed:
> [EMAIL PROTECTED] (in reply to RCPT TO command))
> Aug 27 05:22:08 shireen postfix/cleanup[10901]: C556B21348B: message-id=<
> [EMAIL PROTECTED]>
> Aug 27 05:22:08 shireen postfix/qmgr[9473]: C556B21348B: from=<>,
> size=2333, nrcpt=1 (queue active)
>
> **********
>
> any help with be hugely appreciated.
>
> vr



hey,

2 questions I have

1) Are you the registered user of mtnl means you have any account with mtnl
then your postfix MTA should be able to talk to the mtnl server.

2) You have defined smtp_sasl_password_maps =/etc/postfix/sasl_passwd

What is the entry in the sasl_passwd file? The entry should be

smtp.bol.net.in                                     username:password

 You can define your username

[EMAIL PROTECTED]  in  /etc/postfix/virtual file

[EMAIL PROTECTED]                     mitavikas (local user)

run this command for both virtual and sasl_passwd

postmap /etc/postfix/virtual
postmap /etc/postfix/sasl_passwd

restart the postfix

If still the error persists then use

You can set the hostname of your machine to anything and then put this entry
in the main.cf file of postfix
masquerade_domains  = yourlocaldomainname for ex . sun.net

I hope it may solve your problem.

Regards

Ankush Grover
_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to