Sendmail problem

Discussion in 'Server Operation' started by Nejko, Mar 8, 2006.

  1. Nejko

    Nejko New Member

    Hey

    i finaly managed to get sendmail half-working :D It can send emails, but it can not accept them.. i have no idea what should be wrong. i forwarded all ports from 20-144. hoping for fast answer :)

    cya, Nejko
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's in the mail log when an email is comaing in?
     
  3. Nejko

    Nejko New Member

    Mar 8 12:35:10 localhost sendmail[30617]: k28BZAhr030617: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33690, dsn=2.0.0, stat=Sent
    Mar 8 13:20:52 localhost sendmail[31247]: k28CKq7e031247: from=[email protected], size=418, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
    Mar 8 13:20:52 localhost sendmail[31250]: k28CKqrt031250: from=<[email protected]>, size=581, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
    Mar 8 13:20:52 localhost sendmail[31247]: k28CKq7e031247: to=[email protected], ctladdr=[email protected] (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30418, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k28CKqrt031250 Message accepted for delivery)
    Mar 8 13:20:56 localhost sendmail[31252]: k28CKqrt031250: to=<[email protected]>, delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=120581, relay=mailhub.siol.net. [193.189.160.25], dsn=2.0.0, stat=Sent (Message received: [email protected]ldomain)

    that's some lines of the latest..
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. Please post the output of
    Code:
    netstat -tap
     
  5. Nejko

    Nejko New Member

    [root@localhost ~]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:20000 *:* LISTEN 2455/perl
    tcp 0 0 *:32769 *:* LISTEN 1830/rpc.statd
    tcp 0 0 *:mysql *:* LISTEN 2271/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1812/portmap
    tcp 0 0 *:10000 *:* LISTEN 3930/perl
    tcp 0 0 192.168.2.101:domain *:* LISTEN 2767/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 2767/named
    tcp 0 0 *:ftp *:* LISTEN 2292/proftpd: (acce
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2129/cupsd
    tcp 0 0 localhost.localdomain:5335 *:* LISTEN 2111/mDNSResponder
    tcp 0 0 localhost.localdomain:rndc *:* LISTEN 2767/named
    tcp 0 0 localhost.localdomain:smtp *:* LISTEN 2309/sendmail: acce
    tcp 0 0 *:http *:* LISTEN 2333/httpd
    tcp 0 0 *:ssh *:* LISTEN 2177/sshd
    tcp 0 0 *:https *:* LISTEN 2333/httpd
    tcp 0 0 ::ffff:192.168.2.101:ssh ::ffff:192.168.2.100:2957 ESTABLISHED 4700/1
    [root@localhost ~]#
     
  6. falko

    falko Super Moderator ISPConfig Developer

    There's no POP3 or IMAP daemon running! That's why you can't fetch your emails with an email client like Outlook or Thunderbird. Please start POP3.
     
  7. Nejko

    Nejko New Member

    [root@localhost ~]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:20000 *:* LISTEN 2455/perl
    tcp 0 0 *:32769 *:* LISTEN 1830/rpc.statd
    tcp 0 0 *:mysql *:* LISTEN 2271/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1812/portmap
    tcp 0 0 *:10000 *:* LISTEN 3930/perl
    tcp 0 0 192.168.2.101:domain *:* LISTEN 2767/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 2767/named
    tcp 0 0 *:ftp *:* LISTEN 2292/proftpd: (acce
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2129/cupsd
    tcp 0 0 localhost.localdomain:5335 *:* LISTEN 2111/mDNSResponder
    tcp 0 0 localhost.localdomain:smtp *:* LISTEN 13435/sendmail: acc
    tcp 0 0 localhost.localdomain:rndc *:* LISTEN 2767/named
    tcp 0 0 192.168.2.101:10000 192.168.2.100:4911 TIME_WAIT -
    tcp 0 0 192.168.2.101:10000 192.168.2.100:4912 ESTABLISHED 14631/perl
    tcp 0 0 192.168.2.101:10000 192.168.2.100:4913 ESTABLISHED 14632/perl
    tcp 0 0 *:imaps *:* LISTEN 13226/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 13226/dovecot
    tcp 0 0 *:pop3 *:* LISTEN 13226/dovecot
    tcp 0 0 *:imap *:* LISTEN 13226/dovecot
    tcp 0 0 *:http *:* LISTEN 2333/httpd
    tcp 0 0 *:ssh *:* LISTEN 2177/sshd
    tcp 0 0 *:https *:* LISTEN 2333/httpd
    tcp 0 296 ::ffff:192.168.2.101:ssh ::ffff:192.168.2.100:4923 ESTABLISHED 14636/1
    [root@localhost ~]#


    still no mails to inside..
     
  8. falko

    falko Super Moderator ISPConfig Developer

    You must make Sendmail deliver emails to Maildir instead of mbox.
     
  9. Nejko

    Nejko New Member

    Can u please explain a bit? ;)

    ok, got mbow. so i change it to what?
    /////////////////////////////////////////////////////7

    i did:
    Mail file in home directory: Mail file in home directory

    and in dovecot:
    Mail file location: Inbox and folders in ~/Maildir

    (i'm using webmin)

    But still no mails from outside :S
     
    Last edited: Mar 9, 2006
  10. falko

    falko Super Moderator ISPConfig Developer

    Do you have a screenshot of the webmin settings?
     
  11. Nejko

    Nejko New Member

  12. falko

    falko Super Moderator ISPConfig Developer

    Ok, first screenshot:
    "User mail file location": Select "File under home directory".
    "Mail file in home directory": Must be
    Code:
    Maildir/

    Second screenshot:
    "SMTP port options": Select "Default".
     
  13. Nejko

    Nejko New Member

    I changed as u said, restarted mail server, but still not working :( I get mails which i send instyntly, but if i reply on 'em, i don't get nothing. :confused:
     
  14. falko

    falko Super Moderator ISPConfig Developer

    To which domain do you reply (i.e., what's the recipient domain)?
     
  15. Nejko

    Nejko New Member

    from: [email protected]
    to: [email protected]

    and i want to reply from: [email protected]
    to: [email protected] (nero-server.com)
     
    Last edited: Mar 11, 2006
  16. falko

    falko Super Moderator ISPConfig Developer

    Your mail server is greeting with localhost.localdomain:

    Code:
    telnet mail.nero-server.com 25
    Trying 193.77.159.15...
    Connected to BSN-77-159-15.dsl.siol.net.
    Escape character is '^]'.
    220 [B][COLOR="Red"]localhost.localdomain[/COLOR][/B] ESMTP Sendmail 8.13.4/8.13.4; Sat, 11 Mar 2006 11:17:30 +0100
    Please change that.
     
  17. Nejko

    Nejko New Member

    Pm........

    don't know where. i changed something, but without efect..

    Sendmail Options (O)
    Mail Aliases (aliases)
    Local Domains (Cw)
    Domain Masquerading (CM)
    Trusted Users (T)
    Address Mappings (virtuser)
    Domain Routing (mailertable)
    Outgoing Addresses (generics)
    Outgoing Domains (CG)
    Domain Mapping (domaintable)
    Spam Control (access)
    Relay Domains (CR)
    Sendmail M4 Configuration
    Mail Queue (mailq)
    0 messages
    User Mailboxe

    those are the options. which one and what?

    cya


    EDIT: I aded my domain, and i pass mail now on dnsreport.com, but noone still can send me mails :(
    EDIT: I checked /var/spool/mail and mail's are here :S How to make that they will be displayed in Read User Mail?
    EDIT: Got everything working, thanks for help falko!
     
    Last edited: Mar 12, 2006

Share This Page