Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question postfix configuration: local email forwarding with smtps

    Hello,

    I have issues configuring postfix to send the server's local emails to an external mail server.

    My (small-)server (hostname: localdomain.site) is located at my house and has therefore a dynamic IP. I want to get informed what is happening on it, so I want it to send/forward the/all local emails/logs (smartd, cron, ...) to an external mail server (mail.example.com, email to log(at)example.com). The email should therefore be sent to the server via SMTP with SSL (like sending email using thunderbird...).
    (please correct me, when I'm wrong...)

    My current non-working postfix configuration:
    Code:
    --  /etc/postfix/main.cf:
    relayhost = [mail.example.com]
    smtp_generic_maps = hash:/etc/postfix/generic
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noplaintext, noanonymous
    smtp_sasl_tls_security_options = $smtp_sasl_security_options
    smtp_tls_security_level = encrypt
    Code:
    -- /etc/postfix/generic:
    (at)localdomain.site    log(at)example.com
    Code:
    -- /etc/postfix/sasl_passwd:
    [mail.example.com]    usr:password
    After postfix restart, I try:
    Code:
    echo MyTestMail | mail -s Test log(at)example.com
    and receive no mail but the /var/log/maillog says:
    Code:
    ...
    certificate verification failed for mail.example.com[IP]:25: untrusted issuer /C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=PositiveSSL CA
    warning: SASL authentication failure: No worthy mechs found
    ...
    I interpret this as follows:
    (1) postifx is missing the CA's certificate
    (2) compared (wireshark) to sending an email using thunderbird, postfix tries to connect to port 25. should't it be 465 instead?

    to (1)
    I found the following URL, but I'm not sure which one's the right file (URL tags not yet allowed, thus using CODE...):
    Code:
    https://support.comodo.com/index.php?_m=downloads&_a=view&parentcategoryid=4&pcid=1&nav=0,1
    Supposed I have downloaded the right file to /etc/postfix/certs/mail.example.com.cert which postfix parameters do I need to change, and how? (sth. like smtp_tls_CAfile?)

    Thanks for any help,
    -- grabowski
    ScientificLinux 6.1 x86/x86_64, openSUSE 11.3 x86_64




  2. #2
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    any ideas?
    ScientificLinux 6.1 x86/x86_64, openSUSE 11.3 x86_64

 

 

Similar Threads

  1. Postfix and Gmail issue
    By Divine in forum Mail Server
    Replies: 4
    Last Post: 10-18-2012, 11:11 PM
  2. Port Forwarding Help
    By Kyle Lindeque in forum Server Security
    Replies: 3
    Last Post: 04-16-2012, 11:21 AM
  3. Hardening Postfix For ISPConfig 3
    By News in forum Linux News
    Replies: 0
    Last Post: 02-01-2012, 12:13 PM
  4. Replies: 0
    Last Post: 01-14-2012, 03:50 PM
  5. Replies: 0
    Last Post: 12-12-2011, 06:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,559
Threads: 3,916
Posts: 9,431
Top Poster: Fred (1,486)
Welcome to our newest member, ssanthshtech

» Links



Powered by vBadvanced CMPS