Hi!
Ok, below some notes, links that i read that you might find useful.
What i did was below, and some manual adjustments to main.cf after that.
They are listed below.
I don't think you should use this solution to send mail for a whole domain
with a lot of users as all from addresses will be the one account you
use for sending unless
you map all users to different relay server accounts. A lot of work,
hard to maintain.
For a sipx system i would say it is enough to get mail
even if the sender is static for all "users/processes" on the server.
e.g all messages
come from /youractualmailaddr...@your.isp.com/
1./ #rpm -e --nodeps sendmail/
2. /#yum install postfix system-switch-mail cyrus-sasl-plain
cyrus-sasl-lib cyrus-sasl cyrus-sasl-md5/
3. choose postfix using: #/system-switch-mail-nox /
4. /http://wiki.zimbra.com/wiki/Outgoing_SMTP_Authentication/
You must change some paths to reflect that you are not using zimbra.
I followed the steps but changed //opt/zimbra/conf/ to //etc/postfix/
Don't try mailing using postfix just yet
5. Steps 7 to 11 from/ http://yocum.org/faqs/postfix-tls-sasl.html/
Whenever you see same entry in you current /main.cf / - replace.
Comment out the original.
I will list my final settings below. Change according to your
environment.
In general: Create a cert. Do it anyway you want following any
instruction
and update paths in /main.cf/ to reflect. I noticed that openssl
locations differ from
distro to distro. There are some additional notes here
/http://www.greens.org/~cls/linux/howtos/smtp-auth-saslauthd.html/
6. #//usr/local/etc/rc.d/saslauthd.sh start/
7./ #/sbin/chkconfig --level 3 saslauthd on/
8. In //etc/postfix/sasl/smtpd.conf/
/pwcheck_method: saslauthd
mech_list: mech_list: plain login cram-md5 digest-md5/
9. Additional hints:
/http://webmail.tm.net.my/info/smtp-proxy.html#Postfix/
10. If you are sending all mail from the domain using ONE mail id you
need sort of masquerading
/ smtp_generic_maps = hash:/etc/postfix/generic/ in //etc/postfix/main.cf/
Create //etc/postfix/generic/ and add
/@//hostnameof sipx.machine.se// youractualmailaddr...@your.isp.com/
then /#postmap /etc/postfix/generic/
11. In your /etc/postfix/master.cf add a "-v" to get verbose logging(for
now)
/ smtp inet n - n - - smtpd *-v*/
12. Check that you in you /main.cf/ have
/alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases/
do:/ #postmap /etc/aliases/
13. Take a look at files from working config
/
/_Lines in main.cf that i have edited since install of postfix.:_
/mydomain =hostnameof sipx.machine.se
mynetworks = 192.168.1.0/24, 127.0.0.0/8 # My subnet added
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost = smtp2.someserver.se:587 # Server to act as relay
server. Add port if you need.
smtp_sasl_security_options = noanonymous
smtp_sasl_auth_enable= yes
smtp_sasl2_auth_enable= yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_cname_overrides_servername = no
smtp_use_tls = yes
smtp_tls_CAfile = /etc/postfix/certs/cacert.pem
smtpd_tls_key_file = /etc/postfix/certs/postfix_private_key.pem
smtpd_tls_cert_file = /etc/postfix/certs/postfix_public_cert.pem
smtp_generic_maps = hash:/etc/postfix/generic
/
_Contents of /etc/postfix/relay_password_
/smtp2.someserver.se/ ausername:apassword # Note. No encoding on
password in my case(MS Exchange)
14. /#/etc/rc.d/init.d/postfix restart/
15. /mail t...@somedomain.se
subject: bla bla
test
./
16. /tail - f /var/log/maillog/
17. Errors?? First check that there are no messages about files not
found. If there are check paths in main.cf. Fix, restart.
Missing/failing auth because of missing mechanism. See step 8.
Messages meaning sort of "not allowed to send". See step 10.
Maybe i missed some part. Get back to me.
18. If it all works, revert step 11 do step 14 again.
*Vänliga Hälsningar/Best Regards*
/Ola Samuelson/
2010-07-02 00:09, Norman Branitsky skrev:
On 7/1/2010 12:57 PM, Ola Samuelson wrote:
Ditched sendmail
Installed postfix/sasl2/certs etc.
Took quite a while.
Now relaying mail via outside provider works.
>From what i could tell on the wiki people
has found this less than fun to configure.
If anyone is interested i can mail links, main.cf etc
that i used. Might be useful to someone.
Please send your links, main.cf etc.
I have been struggling with this for a while.
--
Norman Branitsky +1 416.798.7948
Cherniak Software Development Corporation Fax: +1 416.798.0948
509-2001 Sheppard Avenue eastnor...@cherniaksoftware.com
Toronto, ON M2J 4Z8sip:nor...@cherniaksoftware.com
Canada http://www.CherniakSoftware.com
_______________________________________________
sipx-users mailing list sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
sipXecs IP PBX -- http://www.sipfoundry.org/