-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In <[EMAIL PROTECTED]>, Mehul Ved wrote:
>On 9/5/08, Sahil Dave <[EMAIL PROTECTED]> wrote:
>>  are the above settings correct?
>
>Check the following files, if they are correct and have been hashed
>
>1. /etc/postfix/tls_per_site
>smtp.gmail.com MUST

Above file is okay, but make sure, file is processed by postmap(5).

>
>2.   /etc/postfix/
>[smtp.gmail.com]  [EMAIL PROTECTED]:password

Above file is also fine, and it also need to be processed by postmap(5).

>
>3. /etc/postfix transport
>gmail.com  smtp:[smtp.gmail.com]

This is wrong, unless you want to tell postfix that mails to all @gmail.com 
users should be sent (not _relayed_ via) to the SMTP server smtp.gmail.com. Use 
'relay' transport instead of 'smtp' transport. But even this won't relay mails 
via smtp.gmail.com if mail is destined to non @gmail.com address.

Well, above can also be implemented using 'relayhost' variable in main.cf. 
And don't use transport_maps, unless, you really need them.

- ---->8---->8----
mydestination=$myhostname,localhost.$mydomain,localhost,localhost.localdomain
relayhost=[smtp.gmail.com]
smtp_use_tls=yes
smtp_tls_per_site=hash:/etc/postfix/tls_per_site
smtp_tls_session_cache_database=btree:/var/run/smtp_tls_session_cache
smtp_sasl_tls_security_options=noanonymous
smtp_tls_CAfile=/etc/postfix/cacert.pem
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl/sasl_passwd
relay_domains=
- ---->8---->8----

And this configuration is tested on Fedora, Ubuntu, and Gentoo GNU/Linux + 
FreeBSD with minor changes related to path names. On Gentoo GNU/Linux and 
FreeBSD I've installed from source. cacert.pem is the one which is shipped with 
Mozilla Firefox.

HTH
Ashish
- -- 
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
()  ascii ribbon campaign - against HTML e-mail 
/\  www.asciiribbon.org   - against proprietary attachments
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkjClUsACgkQHy+EEHYuXnTUrQCgpVL4anviO+6ZZzaZuqM7+k6H
1O0An1WX+n4e4XQ5I8IJ/onZ4HTTCgmA
=MVPc
-----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]/

Reply via email to