Re: [ilugd] Relaying mail in posrtfix
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sahil Dave writes: > On Sun, Sep 7, 2008 at 8:55 AM, Ashish Shukla आशीष शुक्ल wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Sahil Dave writes: >> >> [snip] >> >> > Sep 4 03:48:18 localhost postfix/smtpd[8377]: NOQUEUE: reject: RCPT from >> > debmail.net[192.168.1.8]: 554 5.7.1 <[EMAIL PROTECTED]>: *Relay >> access >> > denied*; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP >> >> If you're getting the above error message, then I'm sorry you're >> testing the wrong way. Your box is won't be accepting mails for >> gmail.com unless you've listed gmail.com in $mydestination, >> $virtual_mailbox_domains, etc. So, please verify this properly. And >> you can also do following things: >> >> o Check out SMTPD_ACCESS_README[1] in Postfix documentation[2]. >> o And better, start from scratch, reinstall Postfix with a clean >> configuration. >>> ok i'll start from scratch. btw, i selected the 'Internet Site" option > while installing postfix. You should've chosen 'smarthost' (or similar) instead. But no problems, just add proper relayhost, and other stuff discussed here. All the best :) . Ashish - -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- () ascii ribbon campaign - against HTML e-mail /\ www.asciiribbon.org - against proprietary attachments -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjD8GIACgkQHy+EEHYuXnQ+KwCg6AbnijmlhZwKAX2VXfWb2NMF 4IwAoMyHUjjlBe1z9kle1UDiz1stbNg4 =/FAH -END PGP SIGNATURE- ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On Sun, Sep 7, 2008 at 8:55 AM, Ashish Shukla आशीष शुक्ल wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Sahil Dave writes: > > [snip] > > > Sep 4 03:48:18 localhost postfix/smtpd[8377]: NOQUEUE: reject: RCPT from > > debmail.net[192.168.1.8]: 554 5.7.1 <[EMAIL PROTECTED]>: *Relay > access > > denied*; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP > > If you're getting the above error message, then I'm sorry you're > testing the wrong way. Your box is won't be accepting mails for > gmail.com unless you've listed gmail.com in $mydestination, > $virtual_mailbox_domains, etc. So, please verify this properly. And > you can also do following things: > > o Check out SMTPD_ACCESS_README[1] in Postfix documentation[2]. > o And better, start from scratch, reinstall Postfix with a clean > configuration. >> ok i'll start from scratch. btw, i selected the 'Internet Site" option while installing postfix. -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/
Re: [ilugd] Relaying mail in posrtfix
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sahil Dave writes: [snip] > Sep 4 03:48:18 localhost postfix/smtpd[8377]: NOQUEUE: reject: RCPT from > debmail.net[192.168.1.8]: 554 5.7.1 <[EMAIL PROTECTED]>: *Relay access > denied*; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP If you're getting the above error message, then I'm sorry you're testing the wrong way. Your box is won't be accepting mails for gmail.com unless you've listed gmail.com in $mydestination, $virtual_mailbox_domains, etc. So, please verify this properly. And you can also do following things: o Check out SMTPD_ACCESS_README[1] in Postfix documentation[2]. o And better, start from scratch, reinstall Postfix with a clean configuration. The configuration for gmail.com is not much different from other smarthosts, except that they require you to authenticate yourself on TLS connection before relaying mail. References: [1] - http://www.postfix.org/SMTPD_ACCESS_README.html#relay [2] - http://www.postfix.org/documentation.html HTH - -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- () ascii ribbon campaign - against HTML e-mail /\ www.asciiribbon.org - against proprietary attachments -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjDScoACgkQHy+EEHYuXnTB0ACgiKkhdIs5pQtV3nhLjhgb9Vss PeoAoKyjJhcBD86jG98Uw91Mu7zKZEdS =quQO -END PGP SIGNATURE- ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On 9/7/08, Sahil Dave <[EMAIL PROTECTED]> wrote: > >> i have generated my own cacert.pem. could that be the problem?? I guess not, cos I have generated my own too. ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On Sat, Sep 6, 2008 at 8:05 PM, आशीष शुक्ल Ashish Shukla wrote: > > On Gentoo GNU/Linux and > FreeBSD I've installed from source. cacert.pem is the one which is shipped > with > Mozilla Firefox. > >> i have generated my own cacert.pem. could that be the problem?? -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On Sat, Sep 6, 2008 at 10:49 PM, Ashish Shukla आशीष शुक्ल wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Sahil Dave writes: > > [snip] > > > i have commented out most of the smtpd_ values but still the problem > > persists. > > What is the latest error message, you're getting ? >> its still the same error message --> relay access denied > > > Ashish > - -- > ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- > () ascii ribbon campaign - against HTML e-mail > /\ www.asciiribbon.org - against proprietary attachments > -BEGIN PGP SIGNATURE- > Version: GnuPG v2.0.9 (GNU/Linux) > > iEYEARECAAYFAkjCu44ACgkQHy+EEHYuXnRyXACg8dV7xfyv+3NXcWHOWuV4fH92 > NTUAoOEwxfSlMjrHppntEm0TIa9ypoAO > =e3AW > -END PGP SIGNATURE- > > ___ > 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/ > -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/
Re: [ilugd] Relaying mail in posrtfix
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sahil Dave writes: [snip] > i have commented out most of the smtpd_ values but still the problem > persists. What is the latest error message, you're getting ? Ashish - -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- () ascii ribbon campaign - against HTML e-mail /\ www.asciiribbon.org - against proprietary attachments -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjCu44ACgkQHy+EEHYuXnRyXACg8dV7xfyv+3NXcWHOWuV4fH92 NTUAoOEwxfSlMjrHppntEm0TIa9ypoAO =e3AW -END PGP SIGNATURE- ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On Sat, Sep 6, 2008 at 8:05 PM, आशीष शुक्ल Ashish Shukla wrote: > > >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. > >> i have removed the transport file & its mapping in main.cf, since relayhost is set in there. > > - >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. $postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = $myhostname,localhost,localhost.localdomain,debmail.net myhostname = debian mynetworks = 127.0.0.0/8 myorigin = /etc/mailname recipient_delimiter = + relayhost = [smtp.gmail.com] smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_tls_cert_file = /etc/postfix/FOO-cert.pem smtp_tls_key_file = /etc/postfix/FOO-key.pem smtp_tls_loglevel = 1 smtp_tls_per_site = hash:/etc/postfix/tls_per_site smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache smtp_use_tls = yes smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_sasl_auth_enable = no smtpd_sasl_local_domain = $myhostname i have commented out most of the smtpd_ values but still the problem persists. -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/
Re: [ilugd] Relaying mail in posrtfix
-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 -- 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/
Re: [ilugd] Relaying mail in posrtfix
On 9/5/08, Sahil Dave <[EMAIL PROTECTED]> wrote: > >> i have re-checked the above files and re-hashed them. but still the error > persists. even changing the port to 25 didn't work. Looking around, the error seems to be related to SASL only. Jimmy's Weblog[1] has something debian specific so might help you better. 1. http://www.jimmy.co.at/weblog/?p=52 ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On Fri, Sep 5, 2008 at 1:17 AM, Mehul Ved <[EMAIL PROTECTED]> 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 > > 2. /etc/postfix/ > [smtp.gmail.com] [EMAIL PROTECTED]:password > > 3. /etc/postfix transport > gmail.com smtp:[smtp.gmail.com] >> i have re-checked the above files and re-hashed them. but still the error persists. even changing the port to 25 didn't work. -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/
Re: [ilugd] Relaying mail in posrtfix
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 2. /etc/postfix/ [smtp.gmail.com] [EMAIL PROTECTED]:password 3. /etc/postfix transport gmail.com smtp:[smtp.gmail.com] > also, since i am on debian, i didn't install postfix from source and simply > "apt-get"ed it. so, some of the files like generic, tls_per_site, transport > were not there. i have created the last 2 manually and ran a postmap. No problem with it. They won't be there even if you install from the source, AFAIK. ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On Thu, Sep 4, 2008 at 5:12 PM, Ashish Shukla आशीष शुक्ल wrote: > Yes, I've created that too, as Gmail's SMTP won't let you to continue > on unencrypted connection. >> i followed the CA creation and signing steps given in the HOW-TO, and made necessary changes to main.cf but now when i try to send a test mail, the following is logged: $grep "sahil.dave19" < /var/log/mail.log Sep 4 03:48:18 localhost postfix/smtpd[8377]: NOQUEUE: reject: RCPT from debmail.net[192.168.1.8]: 554 5.7.1 <[EMAIL PROTECTED]>: *Relay access denied*; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP ##main.cf## # TLS parameters and settings smtp_tls_loglevel = 1 smtp_tls_per_site = hash:/etc/postfix/tls_per_site smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_tls_cert_file = /etc/postfix/FOO-cert.pem smtp_tls_key_file = /etc/postfix/FOO-key.pem smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache smtp_use_tls = yes smtpd_tls_CAfile = /etc/postfix/cacert.pem smtpd_tls_cert_file = /etc/postfix/FOO-cert.pem smtpd_tls_key_file = /etc/postfix/FOO-key.pem smtpd_tls_received_header = yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtpd_use_tls = yes tls_random_source = dev:/dev/urandom # SASL Settings smtpd_sasl_auth_enable = no smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtpd_sasl_local_domain = $myhostname smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtpd_sasl_application_name = smtpd disable_dns_lookups = yes transport_maps = hash:/etc/postfix/transport are the above settings correct? also, since i am on debian, i didn't install postfix from source and simply "apt-get"ed it. so, some of the files like generic, tls_per_site, transport were not there. i have created the last 2 manually and ran a postmap. -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/
Re: [ilugd] Relaying mail in posrtfix
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sahil Dave writes: > On Wed, Sep 3, 2008 at 1:48 PM, आशीष शुक्ल Ashish Shukla wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I'm also using similar configuration since 1.8 years using Gmail's SMTP as >> mail relay for my local Postfix. And instead of using SMTPS port which is >> SMTP-over-SSL, I'm using smtp.gmail.com:25, which is a plain-text SMTP. >> Ofcourse >> my postfix then switches to TLS. >>> i also tried using port 25 earlier but the mails simply bounced. And, that is because you're not switching to TLS. >> Aug 30 11:55:15 chateau postfix/smtp[19013]: 6F3FFF4B5B: >> to=, relay=smtp.gmail.com[209.85.143.109]:25, >> delay=8.8, delays=0.03/0.03/5.5/3.2, dsn=2.0.0, status=sent (250 2.0.0 OK >> 1220077498 d7sm3392119tib.4) >>> what is chateau over here, your local hostname? That is my host name, chateau.d.lf. >> So the issue is Postfix expecting plain-text SMTP. >> >> I've followed Gmail + Postfix + Fetchmail HOWTO[1]. Though my configuration >> is >> somewhat different from what is mentioned in the HOWTO. >> >> References: >> [1] - http://souptonuts.sourceforge.net/postfix_tutorial.html >> >>> the one thing that i missed out in the above HOW-TO is the creation and > signing of SSL certificate. did you do that as well? i guess not, as you are > using plain-text smtp. Yes, I've created that too, as Gmail's SMTP won't let you to continue on unencrypted connection. Ashish - -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAki/yaUACgkQHy+EEHYuXnQIpACghtC58ZTKdfzSlMOLL2Ewna5g u3wAnR1MmImkuqTSl2XyTkGYrud7p3lZ =HA0Z -END PGP SIGNATURE- ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On 9/4/08, Sahil Dave <[EMAIL PROTECTED]> wrote: > On Wed, Sep 3, 2008 at 1:48 PM, आशीष शुक्ल Ashish Shukla gmail.com> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > I'm also using similar configuration since 1.8 years using Gmail's SMTP as > > mail relay for my local Postfix. And instead of using SMTPS port which is > > SMTP-over-SSL, I'm using smtp.gmail.com:25, which is a plain-text SMTP. > > Ofcourse > > my postfix then switches to TLS. > > > >> i also tried using port 25 earlier but the mails simply bounced. I have been doing the same, too, quite successfully. What is the error when you try port 25? > > Aug 30 11:55:15 chateau postfix/smtp[19013]: 6F3FFF4B5B: > > to=, relay=smtp.gmail.com[209.85.143.109]:25, > > delay=8.8, delays=0.03/0.03/5.5/3.2, dsn=2.0.0, status=sent (250 2.0.0 OK > > 1220077498 d7sm3392119tib.4) > > > >> what is chateau over here, your local hostname? Yes, it's his hostname. > > So the issue is Postfix expecting plain-text SMTP. > > > > I've followed Gmail + Postfix + Fetchmail HOWTO[1]. Though my configuration > > is > > somewhat different from what is mentioned in the HOWTO. > > > > References: > > [1] - http://souptonuts.sourceforge.net/postfix_tutorial.html > > > > >> the one thing that i missed out in the above HOW-TO is the creation and > signing of SSL certificate. did you do that as well? i guess not, as you are > using plain-text smtp. That could be the problem. Did you try Troubleshooting on the same page ---xxx--- openssl s_client -starttls smtp -CApath /usr/share/ssl/certs/ -connect smtp.gmail.com:25 ---xxx--- See if the above comand, and what does it return? Possibly you do need to set certificates properly to go ahead as tls for smtpd, as per the configuration shown there. ---xxx--- smtp_use_tls = yes ---xxx--- ___ 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/
Re: [ilugd] Relaying mail in posrtfix
On Wed, Sep 3, 2008 at 1:48 PM, आशीष शुक्ल Ashish Shukla wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm also using similar configuration since 1.8 years using Gmail's SMTP as > mail relay for my local Postfix. And instead of using SMTPS port which is > SMTP-over-SSL, I'm using smtp.gmail.com:25, which is a plain-text SMTP. > Ofcourse > my postfix then switches to TLS. >> i also tried using port 25 earlier but the mails simply bounced. > Aug 30 11:55:15 chateau postfix/smtp[19013]: 6F3FFF4B5B: > to=, relay=smtp.gmail.com[209.85.143.109]:25, > delay=8.8, delays=0.03/0.03/5.5/3.2, dsn=2.0.0, status=sent (250 2.0.0 OK > 1220077498 d7sm3392119tib.4) >> what is chateau over here, your local hostname? > So the issue is Postfix expecting plain-text SMTP. > > I've followed Gmail + Postfix + Fetchmail HOWTO[1]. Though my configuration > is > somewhat different from what is mentioned in the HOWTO. > > References: > [1] - http://souptonuts.sourceforge.net/postfix_tutorial.html > >> the one thing that i missed out in the above HOW-TO is the creation and signing of SSL certificate. did you do that as well? i guess not, as you are using plain-text smtp. -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/
Re: [ilugd] Relaying mail in posrtfix
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In <[EMAIL PROTECTED]>, Sahil Dave wrote: >hi.. > >i was just trying to configure postfix on my PC and have chosen gmail's smtp >server to relay my mails to the world. i need to do this because i don't >have a domain name + my WAN ip is dynamic. so, using gmail wont treat my >mails as spam. >i have set >relayhost = smtp.gmail.com:465 in 'main.cf' I'm also using similar configuration since 1.8 years using Gmail's SMTP as mail relay for my local Postfix. And instead of using SMTPS port which is SMTP-over-SSL, I'm using smtp.gmail.com:25, which is a plain-text SMTP. Ofcourse my postfix then switches to TLS. > >when i try to send a test mail to my gmail acct. the following is logged. > >Sep 3 00:50:24 localhost postfix/smtp[4258]: 0348D27578: to=< >[EMAIL PROTECTED]>, relay=smtp.gmail.com[209.85.143.109]:465, >delay=657, delays=56/0.01/601/0, dsn=4.4.2, status=deferred (conversation >with smtp.gmail.com[209.85.143.109] timed out while receiving the initial >server greeting) Aug 30 11:55:15 chateau postfix/smtp[19013]: 6F3FFF4B5B: to=, relay=smtp.gmail.com[209.85.143.109]:25, delay=8.8, delays=0.03/0.03/5.5/3.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1220077498 d7sm3392119tib.4) >do i need to specify my WAN ip in main.cf, or is there some other issue? So the issue is Postfix expecting plain-text SMTP. I've followed Gmail + Postfix + Fetchmail HOWTO[1]. Though my configuration is somewhat different from what is mentioned in the HOWTO. References: [1] - http://souptonuts.sourceforge.net/postfix_tutorial.html Happy Spamming :) Ashish Shukla - -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAki+SEwACgkQHy+EEHYuXnR0VQCfWxVp0UNnWofxbUoQynVyMfy4 T6QAoKmtsZq2o+J/d2uiTMbivekabiYt =h9si -END PGP SIGNATURE- ___ 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/
[ilugd] Relaying mail in posrtfix
hi.. i was just trying to configure postfix on my PC and have chosen gmail's smtp server to relay my mails to the world. i need to do this because i don't have a domain name + my WAN ip is dynamic. so, using gmail wont treat my mails as spam. i have set relayhost = smtp.gmail.com:465 in 'main.cf' when i try to send a test mail to my gmail acct. the following is logged. Sep 3 00:50:24 localhost postfix/smtp[4258]: 0348D27578: to=< [EMAIL PROTECTED]>, relay=smtp.gmail.com[209.85.143.109]:465, delay=657, delays=56/0.01/601/0, dsn=4.4.2, status=deferred (conversation with smtp.gmail.com[209.85.143.109] timed out while receiving the initial server greeting) do i need to specify my WAN ip in main.cf, or is there some other issue? -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi ___ 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/